Skip to content

Add wheel support for aarch64 #369

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
8 changes: 6 additions & 2 deletions .ci/build-manylinux-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ ${PIP} wheel /io/ -w /io/dist/

# Bundle external shared libraries into the wheels.
for whl in /io/dist/*.whl; do
auditwheel repair --plat="manylinux2010_${PYARCH}" \
$whl -w /io/dist/
if [ "${PYARCH}" == "aarch64" ] ; then
PLAT="manylinux2014_${PYARCH}"
else
PLAT="manylinux2010_${PYARCH}"
fi
auditwheel repair --plat="${PLAT}" $whl -w /io/dist/
rm /io/dist/*-linux_*.whl
done

Expand Down
12 changes: 8 additions & 4 deletions .ci/travis-build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@ if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
s='m' if tuple('${pyver}'.split('.')) < ('3', '8') \
else ''))")

for arch in x86_64; do
ML_IMAGE="quay.io/pypa/manylinux2010_${arch}"
docker pull "${ML_IMAGE}"
if [ "${TRAVIS_CPU_ARCH}" == "arm64" ] ; then
arch = aarch64;
ML_IMAGE="quay.io/pypa/manylinux2014_${arch}"
elif [ "${TRAVIS_CPU_ARCH}" == "x86_64" ] ; then
arch = x86_64;
ML_IMAGE="quay.io/pypa/manylinux2010_${arch}"
fi
docker pull "${ML_IMAGE}"
docker run --rm \
-v "${_root}":/io \
-e "PYARCH=${arch}" \
Expand All @@ -56,7 +61,6 @@ if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
"${ML_IMAGE}" /io/.ci/build-manylinux-wheels.sh

_upload_wheels
done
done

elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then
Expand Down
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,39 @@ matrix:
python: "3.6"
env: BUILD=tests

- os: linux
dist: trusty
arch: arm64
language: python
python: "3.6"
env: BUILD=tests,wheels,release

- os: linux
dist: xenial
language: python
python: "3.7"
env: BUILD=tests

- os: linux
dist: xenial
arch: arm64
language: python
python: "3.7"
env: BUILD=tests,wheels,release

- os: linux
dist: xenial
language: python
python: "3.8"
env: BUILD=tests

- os: linux
dist: xenial
arch: arm64
language: python
python: "3.8"
env: BUILD=tests,wheels,release

- os: linux
dist: trusty
branches: {only: [releases]}
Expand All @@ -82,6 +103,15 @@ matrix:
services: [docker]
env: BUILD=tests,wheels,release

- os: linux
dist: trusty
branches: {only: [releases] }
arch: arm64
language: python
python: "3.5"
services: [docker]
env: BUILD=tests,wheels,release

cache:
pip

Expand Down