File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -92,21 +92,22 @@ if not exist "%WINPYDIRBASE%\scripts\env.bat" (
92
92
exit /b 1
93
93
)
94
94
95
+ REM === Step: Add pre-requisite packages ===
95
96
call :log_section Add pre-requisite packages
96
97
97
- set path = %my_original_path%
98
- call %my_WINPYDIRBASE% \scripts\env.bat
98
+ set " path = %my_original_path% "
99
+ call " %my_WINPYDIRBASE% \scripts\env.bat"
99
100
100
101
rem python -m ensurepip
101
- rem insta essential packages
102
- python -m pip install --upgrade pip setuptools wheel wppm -c %my_constraints% --pre --no-index --trusted-host=None --find-links=%my_find_links% >> %my_archive_log%
102
+ REM Upgrade essential pip tools
103
+ python -m pip install --upgrade pip setuptools wheel wppm -c " %my_constraints% " --pre --no-index --trusted-host=None --find-links=" %my_find_links% " >> " %my_archive_log% "
103
104
104
- rem Install complementary pre-requirements if any
105
- if not " Z % my_requirements_pre% Z " == " ZZ " (
106
- if " % my_find_links_pre% " == " " set my_find_links_pre = %my_find_links%
107
- 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%
105
+ REM Install additional pre-requirements if specified
106
+ if defined my_requirements_pre (
107
+ if not defined my_find_links_pre set " my_find_links_pre = %my_find_links% "
108
+ 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% "
108
109
) else (
109
- echo " No pre-requisite packages" >> %my_archive_log%
110
+ echo No pre-requisite packages specified >> " %my_archive_log% "
110
111
)
111
112
112
113
call :log_section Add requirement packages
You can’t perform that action at this time.
0 commit comments