1 # appveyor configuration. See http://www.appveyor.com/docs/appveyor-yml
2 # and http://www.appveyor.com/docs/installed-software#python
8 # pre-installed python version, see:
9 # http://www.appveyor.com/docs/installed-software#python
10 - PYTHONDIR: "C:\\Python27"
11 PYTHON_VERSION: "2.7.x"
14 - PYTHONDIR: "C:\\Python27-x64"
15 PYTHON_VERSION: "2.7.x"
18 - PYTHONDIR: "C:\\Python35"
19 PYTHON_VERSION: "3.5.x"
22 - PYTHONDIR: "C:\\Python35-x64"
23 PYTHON_VERSION: "3.5.x"
26 - PYTHONDIR: "C:\\Python36"
27 PYTHON_VERSION: "3.6.x"
30 - PYTHONDIR: "C:\\Python36-x64"
31 PYTHON_VERSION: "3.6.x"
34 - PYTHONDIR: "C:\\Python37"
35 PYTHON_VERSION: "3.7.x"
38 - PYTHONDIR: "C:\\Python37-x64"
39 PYTHON_VERSION: "3.7.x"
44 - ECHO "Installed SDKs:"
45 - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
47 - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
49 # Check that we have the expected version and architecture for Python
51 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
53 - "python -m pip install --disable-pip-version-check --user --upgrade pip"
54 - "python -m pip install --upgrade setuptools"
56 # We need wheel installed to build wheels
57 - "python -m pip install wheel"
59 - "pip install -r requirements.txt"
62 - "bash scripts/get_waf.sh"
65 # also build libaubio with waf
66 - python waf distclean configure build install --verbose --msvc_version="msvc 14.0"
67 # build python module without using libaubio
68 - pip wheel -v -v -v --wheel-dir=dist .
69 # build, upload and install wheel (inspired by numpy's appveyor)
71 pip wheel -v -v -v --wheel-dir=dist .
72 ls dist -r | Foreach-Object {
73 Push-AppveyorArtifact $_.FullName
74 pip install $_.FullName
78 - "python python\\demos\\demo_create_test_sounds.py"