1 # appveyor configuration. See http://www.appveyor.com/docs/appveyor-yml
2 # and http://www.appveyor.com/docs/installed-software#python
7 CUSTOM64PATH: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
11 # pre-installed python version, see:
12 # http://www.appveyor.com/docs/installed-software#python
13 - PYTHONDIR: C:\Python27
17 - PYTHONDIR: C:\Python27-x64
21 - PYTHONDIR: C:\Python35
25 - PYTHONDIR: C:\Python35-x64
29 - PYTHONDIR: C:\Python36
33 - PYTHONDIR: C:\Python36-x64
37 - PYTHONDIR: C:\Python37
41 - PYTHONDIR: C:\Python37-x64
47 - ECHO "Installed SDKs:"
48 - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
50 - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
52 - if [%PYTHON_ARCH%]==[64] SET PATH=%CUSTOM64PATH%;%PATH%
54 # Check that we have the expected version and architecture for Python
56 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
58 - "python -m pip install --disable-pip-version-check --user --upgrade pip"
59 - "python -m pip install --upgrade setuptools"
61 # We need wheel installed to build wheels
62 - "python -m pip install wheel"
64 - "pip install -r requirements.txt"
67 - "bash scripts/get_waf.sh"
70 # also build libaubio with waf
71 - python waf configure build install --verbose --msvc_version="msvc 14.0"
72 # clean before building python package
73 - python waf distclean
74 # build python module without using libaubio
75 - pip wheel -v -v -v --wheel-dir=dist .
76 # build, upload and install wheel (inspired by numpy's appveyor)
78 pip wheel -v -v -v --wheel-dir=dist .
79 ls dist -r | Foreach-Object {
80 Push-AppveyorArtifact $_.FullName
81 pip install $_.FullName
85 - "python python\\demos\\demo_create_test_sounds.py"