mirror of
https://github.com/quantum5/punyverse.git
synced 2025-04-24 13:11:57 -04:00
Make travis build wheels.
This commit is contained in:
parent
ff78a2d8a7
commit
b26cde687a
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -52,3 +52,8 @@ library.zip
|
|||
*.exe
|
||||
*.log
|
||||
*.dll
|
||||
|
||||
# virtualenvs
|
||||
/env
|
||||
/env2
|
||||
/env3
|
||||
|
|
17
.travis-wheels.sh
Executable file
17
.travis-wheels.sh
Executable 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
18
.travis.yml
Normal 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/
|
Loading…
Reference in a new issue