8000 BLD: modify macos wheel build to use accelerate [skip actions][skip c… · numpy/numpy@aa2a723 · GitHub
[go: up one dir, main page]

Skip to content

Commit aa2a723

Browse files
committed
BLD: modify macos wheel build to use accelerate [skip actions][skip circle]
1 parent 8307508 commit aa2a723

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

tools/ci/cirrus_wheels.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,42 @@ build_and_store_wheels: &BUILD_AND_STORE_WHEELS
1010
# Build linux_aarch64 natively
1111
######################################################################
1212

13-
#linux_aarch64_task:
14-
# use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
15-
# compute_engine_instance:
16-
# image_project: cirrus-images
17-
# image: family/docker-builder-arm64
18-
# architecture: arm64
19-
# platform: linux
20-
# cpu: 1
21-
# memory: 4G
22-
# matrix:
23-
# # build in a matrix because building and testing all four wheels in a
24-
# # single task takes longer than 60 mins (the default time limit for a
25-
# # cirrus-ci task).
26-
# - env:
27-
# CIRRUS_CLONE_SUBMODULES: true
28-
# CIBW_BUILD: cp39-*
29-
# EXPECT_CPU_FEATURES: NEON NEON_FP16 NEON_VFPV4 ASIMD ASIMDHP ASIMDDP ASIMDFHM
30-
# - env:
31-
# CIRRUS_CLONE_SUBMODULES: true
32-
# CIBW_BUILD: cp310-*
33-
# - env:
34-
# CIRRUS_CLONE_SUBMODULES: true
35-
# CIBW_BUILD: cp311-*
36-
# - env:
37-
# CIRRUS_CLONE_SUBMODULES: true
38< 8000 code class="diff-text syntax-highlighted-line deletion">-
# CIBW_PRERELEASE_PYTHONS: True
39-
# CIBW_BUILD: cp312-*
40-
#
41-
# build_script: |
42-
# apt update
43-
# apt install -y python3-venv python-is-python3 gfortran libatlas-base-dev libgfortran5 eatmydata
44-
# git fetch origin
45-
# bash ./tools/wheels/cibw_before_build.sh ${PWD}
46-
# which python
47-
# echo $CIRRUS_CHANGE_MESSAGE
48-
# <<: *BUILD_AND_STORE_WHEELS
13+
linux_aarch64_task:
14+
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
15+
compute_engine_instance:
16+
image_project: cirrus-images
17+
image: family/docker-builder-arm64
18+
architecture: arm64
19+
platform: linux
20+
cpu: 1
21+
memory: 4G
22+
matrix:
23+
# build in a matrix because building and testing all four wheels in a
24+
# single task takes longer than 60 mins (the default time limit for a
25+
# cirrus-ci task).
26+
- env:
27+
CIRRUS_CLONE_SUBMODULES: true
28+
CIBW_BUILD: cp39-*
29+
EXPECT_CPU_FEATURES: NEON NEON_FP16 NEON_VFPV4 ASIMD ASIMDHP ASIMDDP ASIMDFHM
30+
- env:
31+
CIRRUS_CLONE_SUBMODULES: true
32+
CIBW_BUILD: cp310-*
33+
- env:
34+
CIRRUS_CLONE_SUBMODULES: true
35+
CIBW_BUILD: cp311-*
36+
- env:
37+
CIRRUS_CLONE_SUBMODULES: true
38+
CIBW_PRERELEASE_PYTHONS: True
39+
CIBW_BUILD: cp312-*
40+
41+
build_script: |
42+
apt update
43+
apt install -y python3-venv python-is-python3 gfortran libatlas-base-dev libgfortran5 eatmydata
44+
git fetch origin
45+
bash ./tools/wheels/cibw_before_build.sh ${PWD}
46+
which python
47+
echo $CIRRUS_CHANGE_MESSAGE
48+
<<: *BUILD_AND_STORE_WHEELS
4949

5050

5151
######################################################################
@@ -81,7 +81,7 @@ macosx_arm64_task:
8181
8282
micromamba create -n numpydev
8383
micromamba activate numpydev
84-
micromamba install -y -c conda-forge compilers python=3.11
84+
micromamba install -y -c conda-forge compilers python=3.11 2>/dev/null
8585
8686
ver=$(sw_vers -productVersion)
8787
macos_target=$(python -c "print('14.0') if '$ver' >= '14.0' else print('11.0')")
@@ -118,7 +118,7 @@ wheels_upload_task:
118118
# final upload here. This is because a run may be on different OS for
119119
# which bash, etc, may not be present.
120120
depends_on:
121-
# - linux_aarch64
121+
- linux_aarch64
122122
- macosx_arm64
123123
compute_engine_instance:
124124
image_project: cirrus-images

0 commit comments

Comments
 (0)
0