File tree Expand file tree Collapse file tree 4 files changed +52
-4
lines changed Expand file tree Collapse file tree 4 files changed +52
-4
lines changed Original file line number Diff line number Diff line change 149
149
}
150
150
},
151
151
{
152
- "label" : " Upgrade environment " ,
152
+ "label" : " Upgrade all packages (!) " ,
153
153
"type" : " shell" ,
154
154
"command" : " cmd" ,
155
155
"args" : [
156
156
" /c" ,
157
- " upgrade_env.bat"
157
+ " upgrade_all.bat"
158
+ ],
159
+ "options" : {
160
+ "cwd" : " scripts" ,
161
+ "env" : {
162
+ "UNATTENDED" : " 1" ,
163
+ "PYTHON" : " ${env:CDL_PYTHONEXE}"
164
+ }
165
+ },
166
+ "group" : {
167
+ "kind" : " build" ,
168
+ "isDefault" : true
169
+ },
170
+ "presentation" : {
171
+ "echo" : true ,
172
+ "reveal" : " always" ,
173
+ "focus" : false ,
174
+ "panel" : " shared" ,
175
+ "showReuseMessage" : true ,
176
+ "clear" : false
177
+ }
178
+ },
179
+ {
180
+ "label" : " Upgrade PlotPyStack packages" ,
181
+ "type" : " shell" ,
182
+ "command" : " cmd" ,
183
+ "args" : [
184
+ " /c" ,
185
+ " upgrade_stack.bat"
158
186
],
159
187
"options" : {
160
188
"cwd" : " scripts" ,
337
365
"cwd" : " scripts" ,
338
366
"env" : {
339
367
"PYTHON" : " ${env:CDL_PYTHONEXE}" ,
368
+ "RELEASE" : " 1" ,
340
369
"UNATTENDED" : " 1"
341
370
}
342
371
},
356
385
"dependsOrder" : " sequence" ,
357
386
"dependsOn" : [
358
387
" Clean Up" ,
388
+ " Upgrade PlotPyStack packages" ,
389
+ " gettext - Compile" ,
359
390
" Build Python packages" ,
360
391
" Create executable" ,
361
392
" Create installer"
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
REM This script was derived from PythonQwt project
3
3
REM ======================================================
4
- REM Update environment requirements
4
+ REM Update all Python required packages
5
5
REM ======================================================
6
6
REM Licensed under the terms of the MIT License
7
7
REM Copyright (c) 2020 Pierre Raybaut
@@ -11,6 +11,6 @@ setlocal
11
11
call %~dp0 utils GetScriptPath SCRIPTPATH
12
12
call %FUNC% UsePython
13
13
cd %SCRIPTPATH% \..
14
- pip install --upgrade -r dev\ requirements.txt
14
+ pip install --upgrade -r requirements.txt
15
15
pip list > pip_list.txt
16
16
call %FUNC% EndOfScript
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ REM This script was derived from PythonQwt project
3
+ REM ======================================================
4
+ REM Update only PlotPyStack required packages
5
+ REM ======================================================
6
+ REM Licensed under the terms of the MIT License
7
+ REM Copyright (c) 2020 Pierre Raybaut
8
+ REM (see PythonQwt LICENSE file for more details)
9
+ REM ======================================================
10
+ setlocal
11
+ call %~dp0 utils GetScriptPath SCRIPTPATH
12
+ call %FUNC% UsePython
13
+ cd %SCRIPTPATH% \..
14
+ pip install --upgrade PythonQwt guidata PlotPy
15
+ call %FUNC% EndOfScript
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ REM ======================================================
53
53
:SetPythonPath
54
54
set ORIGINAL_PYTHONPATH = %PYTHONPATH%
55
55
cd %~dp0 ..
56
+ if not defined RELEASE (set RELEASE=0)
57
+ if %RELEASE% == 1 (goto:eof)
56
58
for /F " tokens=*" %%A in (.env) do (
57
59
set %%A
58
60
)
You can’t perform that action at this time.
0 commit comments