2
0

build.cmd 833 B

123456789101112131415161718192021
  1. @echo off
  2. :: To build extensions for 64 bit Python 3, we need to configure environment
  3. :: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of:
  4. :: MS Windows SDK for Windows 7 and .NET Framework 4
  5. ::
  6. :: More details at:
  7. :: https://github.com/cython/cython/wiki/CythonExtensionsOnWindows
  8. IF "%DISTUTILS_USE_SDK%"=="1" (
  9. ECHO Configuring environment to build with MSVC on a 64bit architecture
  10. ECHO Using Windows SDK 7.1
  11. "C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\WindowsSdkVer.exe" -q -version:v7.1
  12. CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release
  13. SET MSSdk=1
  14. REM Need the following to allow tox to see the SDK compiler
  15. SET TOX_TESTENV_PASSENV=DISTUTILS_USE_SDK MSSdk INCLUDE LIB
  16. ) ELSE (
  17. ECHO Using default MSVC build environment
  18. )
  19. CALL %*