@@ -7,6 +7,7 @@ rem 2020-12-05 : add a constrints.txt file from a recent pip list
7
7
rem 2021-03-20 : track successes packages combination are archived for future contraint update
8
8
rem 2021-04-22 : path PyPy3 (as we don't try to copy PyPy3.exe to Python.exe)
9
9
rem 2023-08-21a: add a pre_step with my_requirements_pre.txt + my_find_links_pre
10
+ rem 2024-05-12a: use python -m pip instead of pip , and remove --upgrade %new_resolver%
10
11
rem *****************************
11
12
12
13
rem algorithm:
@@ -46,11 +47,12 @@ echo ------------------
46
47
echo 0.0 Initialize variables
47
48
echo ------------------
48
49
49
- if " %my_release_level% " == " " set my_release_level = b4
50
+ if " %my_release_level% " == " " set my_release_level = b2
50
51
51
52
set my_basedir = %my_root_dir_for_builds% \bd%my_python_target%
52
53
53
- set my_buildenv = C:\WinPdev\WPy64-3890
54
+ rem since 2024-05-01, a building env need is reduced to a WinPythondot 3.8+ augmented with packages: flit + packaging
55
+ set my_buildenv = C:\WinPdev\WPy64-310111
54
56
55
57
if " %my_constraints% " == " " set my_constraints = C:\WinP\constraints.txt
56
58
@@ -79,7 +81,7 @@ if %my_python_target%==311 (
79
81
80
82
if %my_python_target% == 312 (
81
83
set my_python_target_release = 3123
82
- set my_release = 0
84
+ set my_release = 1
83
85
)
84
86
85
87
if %my_python_target% == 313 (
@@ -270,9 +272,9 @@ rem echo python.exe -c "import sys;from pathlib import Path;f=open(Path(sys.pre
270
272
rem F/2024-04-10
271
273
272
274
rem D/2020-07-05: install msvc_runtime before packages that may want to compile
273
- echo pip install msvc_runtime --pre --no-index --trusted-host=None --find-links=%my_find_links% --upgrade
274
- echo pip install msvc_runtime --pre --no-index --trusted-host=None --find-links=%my_find_links% --upgrade>> %my_archive_log%
275
- pip install msvc_runtime --pre --no-index --trusted-host=None --find-links=%my_find_links% --upgrade
275
+ echo python -m pip install msvc_runtime --pre --no-index --trusted-host=None --find-links=%my_find_links% --upgrade
276
+ echo python -m pip install msvc_runtime --pre --no-index --trusted-host=None --find-links=%my_find_links% --upgrade>> %my_archive_log%
277
+ python -m pip install msvc_runtime --pre --no-index --trusted-host=None --find-links=%my_find_links% --upgrade
276
278
rem F/2020-07-05: install msvc_runtime before packages that may want to compile
277
279
278
280
@@ -292,11 +294,11 @@ if not "Z%my_requirements_pre%Z"=="ZZ" (
292
294
rem 2023-08-21a: add a pre_step with my_requirements_pre.txt + my_find_links_pre
293
295
if " %my_find_links_pre% " == " " set my_find_links_pre = %my_find_links%
294
296
295
- echo pip install -r %my_requirements_pre% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links_pre% --upgrade %new_resolver%
296
- echo pip install -r %my_requirements_pre% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links_pre% --upgrade %new_resolver% >> %my_archive_log%
297
+ echo python -m pip install -r %my_requirements_pre% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links_pre%
298
+ echo python -m pip install -r %my_requirements_pre% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links_pre% >> %my_archive_log%
297
299
echo if pip doesn't work, check the path of %my_WINPYDIRBASE%
298
300
299
- pip install -r %my_requirements_pre% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links_pre% --upgrade %new_resolver% >> %my_archive_log%
301
+ python -m pip install -r %my_requirements_pre% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links_pre% >> %my_archive_log%
300
302
) else (
301
303
echo no packages pre_requirements
302
304
echo no packages pre_requirements>> %my_archive_log%
@@ -312,13 +314,13 @@ echo 2.5 add requirement packages_versions>>%my_archive_log%
312
314
echo %date% %time% >> %my_archive_log%
313
315
echo ----------------------------->> %my_archive_log%
314
316
315
- echo pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links% --upgrade %new_resolver%
316
- echo pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links% --upgrade %new_resolver% >> %my_archive_log%
317
+ echo python -m pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links%
318
+ echo python -m pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links% >> %my_archive_log%
317
319
echo if pip doesn't work, check the path of %my_WINPYDIRBASE%
318
320
319
321
320
322
rem 2020-12-05 : add a constraints.txt file from a recent pip list
321
- pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links% --upgrade %new_resolver% >> %my_archive_log%
323
+ python -m pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links% >> %my_archive_log%
322
324
323
325
echo mid of step 2/3
324
326
0 commit comments