diff --git a/.gitignore b/.gitignore index ea14f0f..1bc0958 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,8 @@ library.zip *.exe *.log *.dll + +# virtualenvs +/env +/env2 +/env3 diff --git a/.travis-wheels.sh b/.travis-wheels.sh new file mode 100755 index 0000000..e03f61f --- /dev/null +++ b/.travis-wheels.sh @@ -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 + diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2e57a73 --- /dev/null +++ b/.travis.yml @@ -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/