diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2016-04-01 23:06:27 -0700 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2016-04-01 23:06:27 -0700 |
commit | 53cb98ad26b0f01a8bf8d7a5a104407d4afb8b8d (patch) | |
tree | fd2900cb656010e8117a8b6a068419dd25e918c0 | |
parent | 38d5fb2e7f61b29e832433b06c2e7a589cd8956b (diff) | |
download | pycrypto-53cb98ad26b0f01a8bf8d7a5a104407d4afb8b8d.tar.gz |
appveyor build.cmd script
-rw-r--r-- | build.cmd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build.cmd b/build.cmd new file mode 100644 index 0000000..243dc9a --- /dev/null +++ b/build.cmd @@ -0,0 +1,21 @@ +@echo off +:: To build extensions for 64 bit Python 3, we need to configure environment +:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of: +:: MS Windows SDK for Windows 7 and .NET Framework 4 +:: +:: More details at: +:: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows + +IF "%DISTUTILS_USE_SDK%"=="1" ( + ECHO Configuring environment to build with MSVC on a 64bit architecture + ECHO Using Windows SDK 7.1 + "C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\WindowsSdkVer.exe" -q -version:v7.1 + CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release + SET MSSdk=1 + REM Need the following to allow tox to see the SDK compiler + SET TOX_TESTENV_PASSENV=DISTUTILS_USE_SDK MSSdk INCLUDE LIB +) ELSE ( + ECHO Using default MSVC build environment +) + +CALL %* |