File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ if "%DO_FETCH%"=="false" goto end
4141if " %ORG% " == " " (set ORG=python)
4242call " %PCBUILD% \find_python.bat" " %PYTHON% "
4343
44- if " % PYTHON% " == " " (
44+ if NOT DEFINED PYTHON (
4545 where /Q git || echo Python 3.6 could not be found or installed, and git.exe is not on your PATH && exit /B 1
4646)
4747
@@ -60,7 +60,7 @@ set libraries=%libraries% zlib-1.2.11
6060for %%e in (%libraries% ) do (
6161 if exist " %EXTERNALS_DIR% \%%e " (
6262 echo .%%e already exists, skipping.
63- ) else if " % PYTHON% " == " " (
63+ ) else if NOT DEFINED PYTHON (
6464 echo .Fetching %%e with git...
6565 git clone --depth 1 https://github.com/%ORG% /cpython-source-deps --branch %%e " %EXTERNALS_DIR% \%%e "
6666 ) else (
@@ -79,7 +79,7 @@ if NOT "%IncludeSSLSrc%"=="false" set binaries=%binaries% nasm-2.11.06
7979for %%b in (%binaries% ) do (
8080 if exist " %EXTERNALS_DIR% \%%b " (
8181 echo .%%b already exists, skipping.
82- ) else if " % PYTHON% " == " " (
82+ ) else if NOT DEFINED PYTHON (
8383 echo .Fetching %%b with git...
8484 git clone --depth 1 https://github.com/%ORG% /cpython-bin-deps --branch %%b " %EXTERNALS_DIR% \%%b "
8585 ) else (
You can’t perform that action at this time.
0 commit comments