Skip to content

Add changes to build arm64 wheels #1108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 40 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
dist: xenial
sudo: false

language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "pypy2.7-6.0"
- "pypy3.5"
os: linux
services: docker

env:
- CASS_DRIVER_NO_CYTHON=1
global:
- CASS_DRIVER_NO_CYTHON=1

addons:
apt:
Expand All @@ -24,10 +18,46 @@ addons:
- libev-dev

install:
- pip install --upgrade setuptools
- pip install tox-travis
- if [[ $TRAVIS_PYTHON_VERSION != pypy3.5 ]]; then pip install lz4; fi
- if [[ $PLAT == aarch64 ]]; then uname -m; docker pull $DOCKER_IMAGE; fi

script:
- tox
- tox -e gevent_loop
- tox -e eventlet_loop
- if [[ $PLAT == aarch64 ]]; then docker run --rm -e PLAT=$PLAT -e PYTHON=$PYTHON -v $(realpath .):/src $DOCKER_IMAGE /src/build-arm64-wheels.sh; fi
jobs:
include:
- arch: amd64
python: "pypy2.7-6.0"

- arch: amd64
python: "pypy3.5"

- arch: amd64
python: "3.5"

- arch: amd64
python: "2.7"

- arch: amd64
python: "3.6"

- arch: amd64
python: "3.7"

- arch: arm64
python: "3.7"
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux2014_aarch64
- PLAT=aarch64
- PYTHON=cp37-cp37m

- arch: arm64
python: "3.8"
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux2014_aarch64
- PLAT=aarch64
- PYTHON=cp38-cp38
13 changes: 13 additions & 0 deletions build-arm64-wheels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
set -e -u -x
cd /src/

# Create binary wheels
/opt/python/${PYTHON}/bin/pip wheel /src/ -w wheelhouse/

ls -lrt wheelhouse/

# Normalize resulting binaries to a common format
for whl in wheelhouse/cassandra_driver-*.whl; do
auditwheel repair "$whl" -w wheelhouse/
done
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ deps = nose
pure-sasl
kerberos
futurist
greenlet>=0.4.14,<0.4.17
lz4_dependency = py27,py35,py36,py37,py38: lz4

[testenv]
Expand Down