Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Build manylinux wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
ddfisher committed Feb 13, 2017
1 parent a230ec7 commit 6dba5ff
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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/build-linux-wheels.sh
- ls wheelhouse/

deploy:
provider: gcs
access_key_id: "$GOOGLE_ACCESS_KEY"
secret_access_key: "$GOOGLE_SECRET_KEY"
bucket: "$GOOGLE_BUCKET_NAME"
local_dir: wheelhouse
skip_cleanup: true
acl: public-read
on:
repo: python/typed_ast
branch: master
tags: true
14 changes: 14 additions & 0 deletions .travis/build-linux-wheels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -eux

# Compile wheels
for PYBIN in /opt/python/*/bin; do
if [ $(echo "${PYBIN}" | grep -o '[[:digit:]][[:digit:]]' | head -n 1) -ge 33 ]; then
# typed_ast only builds on Python 3.3 and newer
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
fi
done

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

0 comments on commit 6dba5ff

Please sign in to comment.