[Python-modules-commits] [subvertpy] 07/17: Also add build.cmd.

Jelmer Vernooij jelmer at moszumanska.debian.org
Wed Jul 19 23:58:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

jelmer pushed a commit to branch master
in repository subvertpy.

commit dc5e05f80323ea26471162550ebffcfe41ffdc1e
Author: Jelmer Vernooij <jelmer at jelmer.uk>
Date:   Wed Jul 19 23:25:08 2017 +0000

    Also add build.cmd.
---
 build.cmd | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/build.cmd b/build.cmd
new file mode 100644
index 0000000..23df2b6
--- /dev/null
+++ b/build.cmd
@@ -0,0 +1,21 @@
+ at 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/CythonExtensionsOnWindows
+
+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 %*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/subvertpy.git



More information about the Python-modules-commits mailing list