summaryrefslogtreecommitdiff
path: root/build.cmd
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2016-05-03 11:58:28 +0900
committerINADA Naoki <songofacandy@gmail.com>2016-07-21 19:18:48 +0900
commitd6254abc8a3ebec6a135b923951767bd97557de4 (patch)
tree121cfd7aca79e93d094baaf07f86101de0acd471 /build.cmd
parent1f8240eaf65b28e93621a8e35f1078d4292047f1 (diff)
downloadmsgpack-python-d6254abc8a3ebec6a135b923951767bd97557de4.tar.gz
Use AppVeyor to build windows wheel (#188)
* Add AppVeyor support to build windows wheel * Fix test_limits on 32bit environments * Ignore Python35-x64 test fail for now Should be fixed in next version.
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd21
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 %*