This repository has been archived by the owner on Dec 4, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
appveyor.yml
82 lines (68 loc) · 2.63 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# vim ft=yaml
os: Visual Studio 2015
environment:
global:
NUMPY_COMMIT: v1.13.1
OPENBLAS_COMMIT: v0.2.20
OPENBLAS_ROOT: c:\opt
WHEELHOUSE_UPLOADER_USERNAME: travis-worker
WHEELHOUSE_UPLOADER_SECRET:
secure:
sb0P1lcBU2GniiKb5m1mpg6kGwWOEC9DtWRqg00+BH/ATYadhCqrpmKUdHJhPTwJ
matrix:
- PYTHON: C:\Python27
- PYTHON: C:\Python27-x64
- PYTHON: C:\Python34
- PYTHON: C:\Python34-x64
- PYTHON: C:\Python35
- PYTHON: C:\Python35-x64
- PYTHON: C:\Python36
- PYTHON: C:\Python36-x64
install:
# Install Python 3.6.2 if necessary
- ps: .\install_python362.ps1
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
# Get Python bitness
# https://stackoverflow.com/questions/1746475/windows-batch-help-in-setting-a-variable-from-command-output#4509885
- set PY_CMD=python -c "import platform; print(platform.architecture()[0][:2])"
- for /f "tokens=1 delims=" %%i in ('%PY_CMD%') do set PYTHON_ARCH=%%i
# Fix MSVC builds for 64-bit Python
# See
# http://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64/vcvars64.bat"
# Check that we have the expected version and architecture for Python
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
- python -m pip install --upgrade pip
- pip install -r requirements.txt
# Pin wheel to 0.26 to avoid Windows ABI tag for built wheel
- pip install wheel==0.26
- git clone https://github.com/numpy/numpy.git
# Download built openblas libraries
- cmd /c unpack_openblas.bat
build_script:
# Build and install the wheel
- cd numpy
- git checkout %NUMPY_COMMIT%
- python ..\build_numpy.py . %PYTHON_ARCH% %OPENBLAS_ROOT%
- cd dist
- pip install --pre --no-index -f . numpy
- pip install nose
# Delete the original libraries to check import of vendored libs
- rmdir /s /q %OPENBLAS_ROOT%\%PYTHON_ARCH%
test_script:
# Run the project tests
- python -c "import numpy; numpy.test(verbose=3)"
- cd ..
artifacts:
- path: numpy\dist\*.*
on_success:
# Upload the generated wheel package to Rackspace
# On Windows, Apache Libcloud cannot find a standard CA cert bundle so we
# disable the ssl checks.
- pip install wheelhouse-uploader
- python -m wheelhouse_uploader upload --no-ssl-check --local-folder=dist
mingwpy-wheels