Skip to content

Commit 3f04af4

Browse files
committed
upgrade_env.bat: upgrading all envs
1 parent b8f01a1 commit 3f04af4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

scripts/upgrade_env.bat

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ REM ======================================================
1010
setlocal
1111
call %~dp0utils GetScriptPath SCRIPTPATH
1212
cd %SCRIPTPATH%\..
13-
%PYTHON% -m pip install --upgrade -r dev\requirements.txt
13+
14+
:: Iterate over all directories in the grandparent directory
15+
:: (WinPython base directories)
16+
call %FUNC% GetPythonExeGrandParentDir DIR0
17+
for /D %%d in ("%DIR0%*") do (
18+
set WINPYDIRBASE=%%d
19+
call !WINPYDIRBASE!\scripts\env.bat
20+
echo Upgrading environment for "%%d":
21+
python -m pip install --upgrade -r dev\requirements.txt
22+
echo ----
23+
)
24+
1425
%PYTHON% -m pip list > dev\pip_list.txt
1526
call %FUNC% EndOfScript

0 commit comments

Comments
 (0)