diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2017-09-05 09:34:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 09:34:54 -0700 |
commit | aa23144d153b9c30fbaf8ba8d2a4d6a668e79417 (patch) | |
tree | a8ccee1703cf5369466b62946626af507a9ec001 /PCbuild | |
parent | [2.7] bpo-30102: Call OPENSSL_add_all_algorithms_noconf (GH-3112) (#3343) (diff) | |
download | cpython-aa23144d153b9c30fbaf8ba8d2a4d6a668e79417.tar.gz cpython-aa23144d153b9c30fbaf8ba8d2a4d6a668e79417.tar.bz2 cpython-aa23144d153b9c30fbaf8ba8d2a4d6a668e79417.zip |
Don't use `where`, it doesn't exist on XP (GH-3330)
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/get_externals.bat | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/PCbuild/get_externals.bat b/PCbuild/get_externals.bat index e83e1d4c9ad..92fc9441727 100644 --- a/PCbuild/get_externals.bat +++ b/PCbuild/get_externals.bat @@ -32,8 +32,11 @@ if "%DO_FETCH%"=="false" goto end if "%ORG%"=="" (set ORG=python) call "%PCBUILD%find_python.bat" "%PYTHON%" -if "%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 +git 2>&1 > nul +if ERRORLEVEL 9009 ( + if "%PYTHON%"=="" ( + echo Python 3.6 could not be found or installed, and git.exe is not on your PATH && exit /B 1 + ) ) echo.Fetching external libraries... |