8000 BUILD: fix wheels for macOS 10.13 (#5521) · scikit-image/scikit-image@c1a284c · GitHub
[go: up one dir, main page]

Skip to content

Commit c1a284c

Browse files
grlee77hmaarrfk
andauthored
BUILD: fix wheels for macOS 10.13 (#5521)
This fix was adapted by @hmaarrfk from scikit-learn/scikit-learn#19064 Co-authored-by: Mark Harfouche <mark.harfouche@gmail.com> Co-authored-by: Mark Harfouche <mark.harfouche@gmail.com>
1 parent b251eeb commit c1a284c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/wheel_tests_and_release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
fail-fast: false
6060
matrix:
6161
os: [macos-latest]
62-
62+
env:
63+
MACOSX_DEPLOYMENT_TARGET: "10.13"
6364
steps:
6465
- uses: actions/checkout@v2
6566
with:
@@ -75,7 +76,14 @@ jobs:
7576
python -m pip install cibuildwheel
7677
- name: Build wheels for CPython 3.9 and Mac OS
7778
run: |
78-
brew install libomp
79+
# Make sure to use a libomp version binary compatible with the oldest
80+
# supported version of the macos SDK as libomp will be vendored into the
81+
# scikit-learn wheels for macos. The list of bottles can be found at:
82+
# https://formulae.brew.sh/api/formula/libomp.json. Currently, the oldest
83+
# supported macos version is: High Sierra / 10.13. When upgrading this, be
84+
# sure to update the MACOSX_DEPLOYMENT_TARGET environment variable
85+
wget https://homebrew.bintray.com/bottles/libomp-11.0.0.high_sierra.bottle.tar.gz
86+
brew install libomp-11.0.0.high_sierra.bottle.tar.gz
7987
python -m cibuildwheel --output-dir dist
8088
env:
8189
CIBW_BUILD: "cp39-*"

0 commit comments

Comments
 (0)
0