Skip to content

Commit

Permalink
manylinux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Apr 13, 2017
1 parent 2a22df1 commit d1e33b1
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .manylinux-install.sh
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

set -e -x

# Compile wheels
for PYBIN in /opt/python/*/bin; do
if [[ "${PYBIN}" == *"cp27"* ]] || \
[[ "${PYBIN}" == *"cp33"* ]] || \
[[ "${PYBIN}" == *"cp34"* ]] || \
[[ "${PYBIN}" == *"cp35"* ]] || \
[[ "${PYBIN}" == *"cp36"* ]]; then
"${PYBIN}/pip" install -e /io/
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
fi
done

# Bundle external shared libraries into the wheels
for whl in wheelhouse/BTrees*.whl; do
auditwheel repair "$whl" -w /io/wheelhouse/
done

9 changes: 9 additions & 0 deletions .manylinux.sh
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -e -x

docker pull $DOCKER_IMAGE

docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/.manylinux-install.sh

pip install twine && twine upload -u zope.wheelbuilder -p $PYPIPASSWORD wheelhouse/*
16 changes: 15 additions & 1 deletion .travis.yml
Expand Up @@ -31,11 +31,25 @@ matrix:
- os: osx
language: generic
env: TERRYFY_PYTHON='macpython 3.6.0'
- services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
before_install:
- if [[ $TRAVIS_TAG ]]; then bash .manylinux.sh; fi
- exit 0
- services:
- docker
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
- PRE_CMD=linux32
before_install:
- if [[ $TRAVIS_TAG ]]; then bash .manylinux.sh; fi
- exit 0

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then git clone https://github.com/MacPython/terryfy; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source terryfy/travis_tools.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then get_python_environment $TERRYFY_PYTHON venv; fi
- if [[ "$TERRYFY_PYTHON" == "homebrew 3" ]]; then alias pip=`which pip3` ; fi
install:
- pip install -U pip setuptools
# persistent is a setup_requires, which gets downloaded by
Expand Down

0 comments on commit d1e33b1

Please sign in to comment.