[Python-checkins] bpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241)

Miss Islington (bot) webhook-mailer at python.org
Thu Mar 21 12:25:26 EDT 2019


https://github.com/python/cpython/commit/b058a97c90c3144cc602b719483572916b3918bb
commit: b058a97c90c3144cc602b719483572916b3918bb
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-03-21T09:25:11-07:00
summary:

bpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241)

(cherry picked from commit 7ee88bf3e59493137a775368165c5c5fe1ed7f46)

Co-authored-by: Jess <jess at gmail.com>

files:
M PCbuild/get_externals.bat

diff --git a/PCbuild/get_externals.bat b/PCbuild/get_externals.bat
index 175a0513e77c..cbeb5a19b55b 100644
--- a/PCbuild/get_externals.bat
+++ b/PCbuild/get_externals.bat
@@ -41,7 +41,7 @@ if "%DO_FETCH%"=="false" goto end
 if "%ORG%"=="" (set ORG=python)
 call "%PCBUILD%\find_python.bat" "%PYTHON%"
 
-if "%PYTHON%"=="" (
+if NOT DEFINED PYTHON (
     where /Q git || echo Python 3.6 could not be found or installed, and git.exe is not on your PATH && exit /B 1
 )
 
@@ -60,7 +60,7 @@ set libraries=%libraries%                                       zlib-1.2.11
 for %%e in (%libraries%) do (
     if exist "%EXTERNALS_DIR%\%%e" (
         echo.%%e already exists, skipping.
-    ) else if "%PYTHON%"=="" (
+    ) else if NOT DEFINED PYTHON (
         echo.Fetching %%e with git...
         git clone --depth 1 https://github.com/%ORG%/cpython-source-deps --branch %%e "%EXTERNALS_DIR%\%%e"
     ) else (
@@ -79,7 +79,7 @@ if NOT "%IncludeSSLSrc%"=="false"  set binaries=%binaries% nasm-2.11.06
 for %%b in (%binaries%) do (
     if exist "%EXTERNALS_DIR%\%%b" (
         echo.%%b already exists, skipping.
-    ) else if "%PYTHON%"=="" (
+    ) else if NOT DEFINED PYTHON (
         echo.Fetching %%b with git...
         git clone --depth 1 https://github.com/%ORG%/cpython-bin-deps --branch %%b "%EXTERNALS_DIR%\%%b"
     ) else (



More information about the Python-checkins mailing list