diff options
author | Marius Gedminas <marius@gedmin.as> | 2015-12-14 09:39:10 +0200 |
---|---|---|
committer | Marius Gedminas <marius@gedmin.as> | 2015-12-14 09:39:10 +0200 |
commit | 971f6582614493cc44bf3da7b1bc04077aa45dec (patch) | |
tree | e0ca0c2a20bf6a4af275dd84fa1172cac916e786 | |
parent | 7795f07b1e962e79df846679269874b4eb61279f (diff) | |
download | zope-interface-appveyor.tar.gz |
Appveyor: 64-bit builds and wheelsappveyor
Based on http://python-packaging-user-guide.readthedocs.org/en/latest/appveyor/
-rw-r--r-- | appveyor.yml | 20 | ||||
-rw-r--r-- | build.cmd | 21 |
2 files changed, 38 insertions, 3 deletions
diff --git a/appveyor.yml b/appveyor.yml index 6c7997c..7d84536 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,12 +3,20 @@ version: build-{build}-{branch} environment: matrix: # http://www.appveyor.com/docs/installed-software#python lists available - # versions + # versions. See http://python-packaging-user-guide.readthedocs.org/en/latest/appveyor/ + # for an explanation of the DISTUTILS_USE_SDK environment variable for Python 3.3 and 3.4. - PYTHON: "C:\\Python26" + - PYTHON: "C:\\Python26-x64" - PYTHON: "C:\\Python27" + - PYTHON: "C:\\Python27-x64" - PYTHON: "C:\\Python33" + - PYTHON: "C:\\Python33-x64" + DISTUTILS_USE_SDK: "1" - PYTHON: "C:\\Python34" + - PYTHON: "C:\\Python34-x64" + DISTUTILS_USE_SDK: "1" - PYTHON: "C:\\Python35" + - PYTHON: "C:\\Python35-x64" init: - "echo %PYTHON%" @@ -16,9 +24,15 @@ init: install: - "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" - python --version - - pip install tox + - pip install tox wheel build: off test_script: - - tox -e py + - "build.cmd tox -e py" + +after_test: + - "build.cmd %PYTHON%\\python.exe setup.py bdist_wheel" + +artifacts: + - path: dist\* 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 %* |