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

Commit e434180

Browse files
authored
Merge pull request #93 from odidev/scipy-wheel-support-aarch64
Add support to AArch64 wheel
2 parents 569714f + e1faf5a commit e434180

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

.travis.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,27 @@ 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-graviton2
34+
dist: focal
35+
virt: vm
36+
group: edge
37+
env:
38+
- MB_PYTHON_VERSION=3.7
39+
- PLAT=aarch64
40+
- NP_BUILD_DEP=numpy==1.19.1
41+
- CYTHON_BUILD_DEP="Cython"
42+
- DOCKER_IMAGE=quay.io/pypa/manylinux2014_${PLAT}
43+
script:
44+
- echo "This stage will just build AArch64 wheel"
45+
workspaces:
46+
create:
47+
name: ws1
48+
paths:
49+
- wheelhouse
50+
after_success:
51+
- echo "This stage will not upload aarch64 wheel"
3152
- os: linux
3253
env:
3354
- MB_PYTHON_VERSION=3.6
@@ -88,6 +109,22 @@ jobs:
88109
- CYTHON_BUILD_DEP="Cython"
89110
- MB_PYTHON_OSX_VER=10.9
90111

112+
- stage: Test wheel
113+
arch: arm64-graviton2
114+
dist: focal
115+
virt: vm
116+
group: edge
117+
env:
118+
- MB_PYTHON_VERSION=3.7
119+
- PLAT=aarch64
120+
- NP_TEST_DEP=numpy==1.19.1
121+
- CYTHON_BUILD_DEP="Cython"
122+
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
123+
workspaces:
124+
use: ws1
125+
install:
126+
- echo "This stage will test and upload the AArch64 wheel"
127+
91128
before_install:
92129
- if [ "$TRAVIS_BRANCH" == "master" ]; then
93130
CONTAINER="pre-release";

config.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,19 @@ 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+
if [[ -z "$IS_OSX" && `uname -m` != 'aarch64' ]]; then
75+
python ../run_scipy_tests.py $testmode -- -n2 -rfEX
76+
else
77+
python ../run_scipy_tests.py $testmode -- -n8 -rfEX
78+
fi
7579
# Show BLAS / LAPACK used
7680
python -c 'import scipy; scipy.show_config()'
7781
}

0 commit comments

Comments
 (0)