5
- PYTHON: "C:\\Python27"
6
PYTHON_VERSION: "2.7.x"
9
- PYTHON: "C:\\Python27-x64"
10
PYTHON_VERSION: "2.7.x"
13
- PYTHON: "C:\\Python35"
14
PYTHON_VERSION: "3.5.x"
17
- PYTHON: "C:\\Python35-x64"
18
PYTHON_VERSION: "3.5.x"
21
- PYTHON: "C:\\Python36"
22
PYTHON_VERSION: "3.6.x"
25
- PYTHON: "C:\\Python36-x64"
26
PYTHON_VERSION: "3.6.x"
29
- PYTHON: "C:\\Python37"
30
PYTHON_VERSION: "3.7.x"
33
- PYTHON: "C:\\Python37-x64"
34
PYTHON_VERSION: "3.7.x"
37
- PYTHON: "C:\\Python38"
38
PYTHON_VERSION: "3.8.x"
41
- PYTHON: "C:\\Python38-x64"
42
PYTHON_VERSION: "3.8.x"
46
# If there is a newer build queued for the same PR, cancel this one.
47
# The AppVeyor 'rollout builds' option is supposed to serve the same
48
# purpose but it is problematic because it tends to cancel builds pushed
49
# directly to master instead of just PR builds (or the converse).
50
# credits: JuliaLang developers.
51
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
52
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
53
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
54
throw "There are newer queued builds for this pull request, failing early." }
55
- ECHO "Filesystem root:"
58
- ECHO "Installed SDKs:"
59
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
61
# Install Python (from the official .msi of http://python.org) and pip when
62
# not already installed.
63
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
65
# Prepend newly installed Python to the PATH of this build (this cannot be
66
# done from inside the powershell script as it would require to restart
67
# the parent CMD process).
68
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
70
# Check that we have the expected version and architecture for Python
71
- "build.cmd %PYTHON%\\python.exe --version"
72
- "build.cmd %PYTHON%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
74
# Install setuptools/wheel so that we can e.g. use bdist_wheel
75
- "pip install setuptools wheel"
76
# Install cython so we can build C extensions
77
- "pip install cython"
79
- "build.cmd %PYTHON%\\python.exe setup.py develop"
81
- "pip install launchpadlib pygithub patiencediff"
84
# Build the compiled extension
85
- "build.cmd %PYTHON%\\python.exe setup.py build"
88
- "build.cmd %PYTHON%\\python.exe setup.py test"
89
- "build.cmd %PYTHON%\\pythonw.exe setup.py test"
92
- "build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"
93
# http://stackoverflow.com/questions/43255455/unicode-character-causing-error-with-bdist-wininst-on-python-3-but-not-python-2
94
# - "python setup.py bdist_wininst"
95
- "build.cmd %PYTHON%\\python.exe setup.py bdist_msi"