Skip to content

Commit b058a97

Browse files
bpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241)
(cherry picked from commit 7ee88bf) Co-authored-by: Jess <[email protected]>
1 parent 74829b7 commit b058a97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PCbuild/get_externals.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if "%DO_FETCH%"=="false" goto end
4141
if "%ORG%"=="" (set ORG=python)
4242
call "%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
6060
for %%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
7979
for %%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 (

0 commit comments

Comments
 (0)