Skip to content

Commit 082bcf8

Browse files
committed
Fix macos deployment target on x86_64
1 parent 438014c commit 082bcf8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/wheel_tests_and_release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,16 @@ jobs:
8080
8181
- name: Build wheels for CPython Mac OS
8282
run: |
83-
export MACOSX_DEPLOYMENT_TARGET=12.0
83+
if [[ "$CIBW_ARCHS_MACOS" == arm64 ]]; then
84+
# SciPy requires 12.0 on arm to prevent kernel panics
85+
# https://github.com/scipy/scipy/issues/14688
86+
# so being conservative, we just do the same here
87+
export MACOSX_DEPLOYMENT_TARGET=12.0
88+
else
89+
export MACOSX_DEPLOYMENT_TARGET=10.13
90+
fi
91+
echo MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET}
92+
8493
python -m cibuildwheel --output-dir dist
8594
env:
8695
CIBW_BUILD: ${{ matrix.cibw_python }}

0 commit comments

Comments
 (0)