summaryrefslogtreecommitdiffstats
path: root/Tools/nuget
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2017-06-19 18:12:56 (GMT)
committerGitHub <noreply@github.com>2017-06-19 18:12:56 (GMT)
commit06d6e3d0bb5b8a3d3105289034953a8014356a0b (patch)
tree7b1731aaa5477b939eb6ba1f507790ef38df61da /Tools/nuget
parentacdf159b245aaac28f54dd10606911386ab39058 (diff)
downloadcpython-06d6e3d0bb5b8a3d3105289034953a8014356a0b.zip
cpython-06d6e3d0bb5b8a3d3105289034953a8014356a0b.tar.gz
cpython-06d6e3d0bb5b8a3d3105289034953a8014356a0b.tar.bz2
bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat (#2252) (#2280)
* Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat Also fixes bdist_wininst.vcxproj to use correct version in generated name.
Diffstat (limited to 'Tools/nuget')
-rw-r--r--Tools/nuget/build.bat7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tools/nuget/build.bat b/Tools/nuget/build.bat
index 5068c17..54498ca 100644
--- a/Tools/nuget/build.bat
+++ b/Tools/nuget/build.bat
@@ -21,7 +21,8 @@ if "%~1" EQU "-p" (set PACKAGES=%PACKAGES% %~2) && shift && shift && goto CheckO
if not defined BUILDX86 if not defined BUILDX64 (set BUILDX86=1) && (set BUILDX64=1)
call "%D%..\msi\get_externals.bat"
-call "%PCBUILD%env.bat" x86
+call "%PCBUILD%find_msbuild.bat" %MSBUILD%
+if ERRORLEVEL 1 (echo Cannot locate MSBuild.exe on PATH or as MSBUILD variable & exit /b 2)
if defined PACKAGES set PACKAGES="/p:Packages=%PACKAGES%"
@@ -30,7 +31,7 @@ if defined BUILDX86 (
) else if not exist "%PCBUILD%win32\python.exe" call "%PCBUILD%build.bat" -e
if errorlevel 1 goto :eof
- msbuild "%D%make_pkg.proj" /p:Configuration=Release /p:Platform=x86 %OUTPUT% %PACKAGES%
+ %MSBUILD% "%D%make_pkg.proj" /p:Configuration=Release /p:Platform=x86 %OUTPUT% %PACKAGES%
if errorlevel 1 goto :eof
)
@@ -39,7 +40,7 @@ if defined BUILDX64 (
) else if not exist "%PCBUILD%amd64\python.exe" call "%PCBUILD%build.bat" -p x64 -e
if errorlevel 1 goto :eof
- msbuild "%D%make_pkg.proj" /p:Configuration=Release /p:Platform=x64 %OUTPUT% %PACKAGES%
+ %MSBUILD% "%D%make_pkg.proj" /p:Configuration=Release /p:Platform=x64 %OUTPUT% %PACKAGES%
if errorlevel 1 goto :eof
)