1 # appveyor configuration. See http://www.appveyor.com/docs/appveyor-yml
2 # and http://www.appveyor.com/docs/installed-software#python
7 MINGW_32: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin
8 MINGW_64: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
12 # pre-installed python version, see:
13 # http://www.appveyor.com/docs/installed-software#python
14 - PYTHONDIR: C:\Python27
18 - PYTHONDIR: C:\Python27-x64
22 - PYTHONDIR: C:\Python35
26 - PYTHONDIR: C:\Python35-x64
30 - PYTHONDIR: C:\Python36
34 - PYTHONDIR: C:\Python36-x64
38 - PYTHONDIR: C:\Python37
42 - PYTHONDIR: C:\Python37-x64
48 - ECHO "Installed SDKs:"
49 - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
51 - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
53 #- if [%PYTHON_ARCH%]==[32] SET PATH=%MINGW_32%;%PATH%
54 - if [%PYTHON_ARCH%]==[64] SET PATH=%MINGW_64%;%PATH%
56 # Check that we have the expected version and architecture for Python
58 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
60 - "python -m pip install --disable-pip-version-check --user --upgrade pip"
61 - "python -m pip install --upgrade setuptools"
63 # We need wheel installed to build wheels
64 - "python -m pip install wheel"
66 - "pip install -r requirements.txt"
69 - "bash scripts/get_waf.sh"
72 # also build libaubio with waf
73 - python waf configure build install --verbose
74 # clean before building python package
75 - python waf distclean
76 # build python module without using libaubio
77 - pip wheel -v -v -v --wheel-dir=dist .
78 # build, upload and install wheel (inspired by numpy's appveyor)
80 pip wheel -v -v -v --wheel-dir=dist .
81 ls dist -r | Foreach-Object {
82 Push-AppveyorArtifact $_.FullName
83 pip install $_.FullName
87 - "python python\\demos\\demo_create_test_sounds.py"