[Python-checkins] [2.7] bpo-30450: Fall back on the old env.bat (GH-3443)

Zachary Ware webhook-mailer at python.org
Fri Sep 8 14:21:10 EDT 2017


https://github.com/python/cpython/commit/1911cf3dd2ae67d600c166ba52872fdcf3e85824
commit: 1911cf3dd2ae67d600c166ba52872fdcf3e85824
branch: 2.7
author: Zachary Ware <zachary.ware at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-09-08T11:21:06-07:00
summary:

[2.7] bpo-30450: Fall back on the old env.bat (GH-3443)

files:
M PCbuild/build.bat

diff --git a/PCbuild/build.bat b/PCbuild/build.bat
index 13da4be4404..b263ec7a654 100644
--- a/PCbuild/build.bat
+++ b/PCbuild/build.bat
@@ -101,7 +101,7 @@ if exist "%GIT%" set GITProperty=/p:GIT="%GIT%"
 
 rem Setup the environment
 call "%dir%find_msbuild.bat" %MSBUILD%
-if ERRORLEVEL 1 (echo Cannot locate MSBuild.exe on PATH or as MSBUILD variable & exit /b 2)
+if ERRORLEVEL 1 (call "%dir%env.bat" && set MSBUILD=msbuild)
 
 if "%kill%"=="true" call :Kill
 



More information about the Python-checkins mailing list