File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,7 @@ macos_arm64_wheel_task:
16
16
CONDA_HOME : $HOME/mambaforge
17
17
matrix :
18
18
- env :
19
- # cibuildwheel can not test on Python 3.8 even on a Apple Silicon machine.
20
- # For details see: https://github.com/pypa/cibuildwheel/pull/1169
21
19
CIBW_BUILD : cp38-macosx_arm64
22
- CIBW_TEST_SKIP : " *"
23
20
- env :
24
21
CIBW_BUILD : cp39-macosx_arm64
25
22
- env :
Original file line number Diff line number Diff line change @@ -35,6 +35,14 @@ if [[ $(uname) == "Darwin" ]]; then
35
35
export CFLAGS=" $CFLAGS -I$PREFIX /include"
36
36
export CXXFLAGS=" $CXXFLAGS -I$PREFIX /include"
37
37
export LDFLAGS=" $LDFLAGS -Wl,-rpath,$PREFIX /lib -L$PREFIX /lib -lomp"
38
+
39
+ if [[ $( uname -m) == " arm64" && " $CIBW_BUILD " == " cp38-macosx_arm64" ]]; then
40
+ # Enables native building and testing for macosx arm on Python 3.8. For details see:
41
+ # https://cibuildwheel.readthedocs.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
42
+ curl -o /tmp/Python38.pkg https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg
43
+ sudo installer -pkg /tmp/Python38.pkg -target /
44
+ sh " /Applications/Python 3.8/Install Certificates.command"
45
+ fi
38
46
fi
39
47
40
48
# The version of the built dependencies are specified
You can’t perform that action at this time.
0 commit comments