File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,11 @@ del python-amd64.exe
44
44
curl --retry 3 -kL " %PYTHON_INSTALLER_URL% " --output python-amd64.exe
45
45
if errorlevel 1 exit /b 1
46
46
47
- start /wait " " python-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0 TargetDir=%CD% \Python
47
+ :: According to https://docs.python.org/3/using/windows.html, setting PrependPath to 1 will prepend
48
+ :: the installed Python to PATH system-wide. Even calling set PATH=%ORIG_PATH% later on won't make
49
+ :: a change. As the builder directory will be removed after the smoke test, all subsequent non-binary
50
+ :: jobs will fail to find any Python executable there
51
+ start /wait " " python-amd64.exe /quiet InstallAllUsers=1 PrependPath=0 Include_test=0 TargetDir=%CD% \Python
48
52
if errorlevel 1 exit /b 1
49
53
50
54
set " PATH = %CD% \Python%PYTHON_VERSION% \Scripts;%CD% \Python;%PATH% "
You can’t perform that action at this time.
0 commit comments