-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathupgrade_stack.bat
More file actions
27 lines (25 loc) · 971 Bytes
/
upgrade_stack.bat
File metadata and controls
27 lines (25 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off
REM This script was derived from PythonQwt project
REM ======================================================
REM Upgrade environment, but only PlotPyStack packages
REM ======================================================
REM Licensed under the terms of the MIT License
REM Copyright (c) 2020 Pierre Raybaut
REM (see PythonQwt LICENSE file for more details)
REM ======================================================
setlocal enabledelayedexpansion
call %~dp0utils GetScriptPath SCRIPTPATH
cd %SCRIPTPATH%\..
:: Iterate over all directories in the grandparent directory
:: (WinPython base directories)
call %FUNC% GetPythonExeGrandParentDir DIR0
for /D %%d in ("%DIR0%*") do (
set WINPYDIRBASE=%%d
call !WINPYDIRBASE!\scripts\env.bat
echo Upgrading environment for "%%d":
python -m pip install --upgrade pip
python -m pip install --upgrade PythonQwt guidata
echo ----
)
%PYTHON% -m pip list > dev\pip_list.txt
call %FUNC% EndOfScript