Make travis build wheels.

This commit is contained in:
Quantum 2018-08-22 16:37:35 -04:00
parent ff78a2d8a7
commit b26cde687a
3 changed files with 40 additions and 0 deletions

5
.gitignore vendored
View file

@ -52,3 +52,8 @@ library.zip
*.exe *.exe
*.log *.log
*.dll *.dll
# virtualenvs
/env
/env2
/env3

17
.travis-wheels.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
set -e -x
# Install a system package required by our library
yum install -y atlas-devel
# Compile wheels
for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" install -r /io/dev-requirements.txt
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
done
# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
auditwheel repair "$whl" -w /io/wheelhouse/
done

18
.travis.yml Normal file
View file

@ -0,0 +1,18 @@
matrix:
include:
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
PRE_CMD=linux32
install:
- docker pull $DOCKER_IMAGE
script:
- docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/.travis-wheels.sh
- ls wheelhouse/