aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-05-08 19:31:29 +0100
committerJason R. Coombs <jaraco@jaraco.com>2013-05-08 19:31:29 +0100
commit6cf20b5f3ea5e6cd05eae3838b4f296c32234f7d (patch)
treee85592c1d3d84a432317d54f35bb767c3242264d
parentdca1e7421f068482b0e307509c1624cb90dbbe3e (diff)
downloadexternal_python_setuptools-6cf20b5f3ea5e6cd05eae3838b4f296c32234f7d.tar.gz
external_python_setuptools-6cf20b5f3ea5e6cd05eae3838b4f296c32234f7d.tar.bz2
external_python_setuptools-6cf20b5f3ea5e6cd05eae3838b4f296c32234f7d.zip
Adapted msvc-build-launcher to use the SDK, which is freely available and will target x64.
--HG-- branch : distribute extra : rebase_source : 3bb4cc57e38d6fc2d8043ce89c57a5016833d890
-rw-r--r--msvc-build-launcher.cmd22
1 files changed, 10 insertions, 12 deletions
diff --git a/msvc-build-launcher.cmd b/msvc-build-launcher.cmd
index 6d762842..b59c510b 100644
--- a/msvc-build-launcher.cmd
+++ b/msvc-build-launcher.cmd
@@ -1,32 +1,30 @@
@echo off
REM VCVARSALL may be in Program Files or Program Files (x86)
-REM Use old Visual Studio 2008 so created .exe will be compatible with
-REM old Windows versions. Free express edition can be downloaded via:
-REM http://download.microsoft.com/download/8/B/5/8B5804AD-4990-40D0-A6AA-CE894CBBB3DC/VS2008ExpressENUX1397868.iso
+REM Use old Windows SDK 6.1 so created .exe will be compatible with
+REM old Windows versions.
+REM Windows SDK 6.1 may be downloaded at:
+REM http://www.microsoft.com/en-us/download/details.aspx?id=11310
set PATH_OLD=%PATH%
-set PATH=C:\Program Files\Microsoft Visual Studio 9.0\VC;%PATH%
-set PATH=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC;%PATH%
+set PATH=C:\Program Files\Microsoft Visual Studio 9.0\VC\bin;%PATH%
+set PATH=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin;%PATH%
REM set up the environment to compile to x86
-call VCVARSALL x86 >nul 2>&1
+call VCVARS32
if "%ERRORLEVEL%"=="0" (
cl /D "GUI=0" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x86 /SUBSYSTEM:CONSOLE /out:setuptools/cli-32.exe
cl /D "GUI=1" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x86 /SUBSYSTEM:WINDOWS /out:setuptools/gui-32.exe
) else (
- echo Visual Studio ^(Express^) 2008 not found to build Windows 32-bit version
+ echo Windows SDK 6.1 not found to build Windows 32-bit version
)
REM now for 64-bit
-REM Visual Studio 2008 Express can't create 64-bit executable without
-REM modifications. Either use higher edition or search google how to
-REM modify Express installation.
-call VCVARSALL x86_amd64 >nul 2>&1
+call VCVARS64
if "%ERRORLEVEL%"=="0" (
cl /D "GUI=0" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x64 /SUBSYSTEM:CONSOLE /out:setuptools/cli-64.exe
cl /D "GUI=1" /D "WIN32_LEAN_AND_MEAN" launcher.c /O2 /link /MACHINE:x64 /SUBSYSTEM:WINDOWS /out:setuptools/gui-64.exe
) else (
- echo Visual Studio 2008 not found to build Windows 64-bit version
+ echo Windows SDK 6.1 not found to build Windows 64-bit version
)
REM Windows RT ARM build requires both freeware