Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit bf330d6

Browse files
committed
Add AArch64 wheel support
1 parent a7c0a16 commit bf330d6

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,24 @@ jobs:
2828
# Exclude the default Python 3.5 build
2929
- python: 3.5
3030
include:
31+
- stage: Build and test wheel
32+
os: linux
33+
arch: arm64
34+
env:
35+
- MB_PYTHON_VERSION=3.7
36+
- PLAT=aarch64
37+
- NP_BUILD_DEP=numpy==1.19.1
38+
- CYTHON_BUILD_DEP="Cython"
39+
- DOCKER_IMAGE=quay.io/pypa/manylinux2014_${PLAT}
40+
script:
41+
- echo "This stage will just build AArch64 wheel"
42+
workspaces:
43+
create:
44+
name: ws1
45+
paths:
46+
- wheelhouse
47+
after_success:
48+
- echo "This stage will not upload aarch64 wheel"
3149
- os: linux
3250
env:
3351
- MB_PYTHON_VERSION=3.6
@@ -88,6 +106,19 @@ jobs:
88106
- CYTHON_BUILD_DEP="Cython"
89107
- MB_PYTHON_OSX_VER=10.9
90108

109+
- stage: Test wheel
110+
arch: arm64
111+
env:
112+
- MB_PYTHON_VERSION=3.7
113+
- PLAT=aarch64
114+
- NP_TEST_DEP=numpy==1.19.1
115+
- CYTHON_BUILD_DEP="Cython"
116+
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
117+
workspaces:
118+
use: ws1
119+
install:
120+
- echo "This stage will test and upload the AArch64 wheel"
121+
91122
before_install:
92123
- if [ "$TRAVIS_BRANCH" == "master" ]; then
93124
CONTAINER="pre-release";

config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ function build_osx_wheel {
6363
function run_tests {
6464
# Runs tests on installed distribution from an empty directory
6565
# OSX tests seem to time out pretty often
66-
if [ -z "$IS_OSX" ]; then
66+
if [[ -z "$IS_OSX" && `uname -m` != 'aarch64' ]]; then
6767
local testmode="full"
6868
else
6969
local testmode="fast"
7070
fi
7171
# Check bundled license file
7272
python ../check_installed_package.py
7373
# Run tests
74-
python ../run_scipy_tests.py $testmode -- -n2 -rfEX
74+
python ../run_scipy_tests.py $testmode -- -n8 -rfEX
7575
# Show BLAS / LAPACK used
7676
python -c 'import scipy; scipy.show_config()'
7777
}

0 commit comments

Comments
 (0)