File tree 2 files changed +10
-1
lines changed 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 86
86
OPENBLAS_NUM_THREADS=2
87
87
SKLEARN_SKIP_NETWORK_TESTS=1
88
88
SKLEARN_BUILD_PARALLEL=3
89
+ MACOSX_DEPLOYMENT_TARGET=10.13
89
90
CIBW_BUILD : cp${{ matrix.python }}-${{ matrix.platform_id }}
90
91
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : bash build_tools/github/repair_windows_wheels.sh {wheel} {dest_dir} ${{ matrix.bitness }}
91
92
CIBW_BEFORE_TEST_WINDOWS : bash build_tools/github/build_minimal_windows_image.sh ${{ matrix.python }} ${{ matrix.bitness }}
Original file line number Diff line number Diff line change 5
5
6
6
# OpenMP is not present on macOS by default
7
7
if [[ " $RUNNER_OS " == " macOS" ]]; then
8
- brew install libomp
8
+ # Make sure to use a libomp version binary compatible with the oldest
9
+ # supported version of the macos SDK as libomp will be vendored into the
10
+ # scikit-learn wheels for macos. The list of bottles can be found at:
11
+ # https://formulae.brew.sh/api/formula/libomp.json. Currently, the oldest
12
+ # supported macos version is: High Sierra / 10.13. When upgrading this, be
13
+ # sure to update the MACOSX_DEPLOYMENT_TARGET environment variable in
14
+ # wheels.yml accordingly.
15
+ wget https://homebrew.bintray.com/bottles/libomp-11.0.0.high_sierra.bottle.tar.gz
16
+ brew install libomp-11.0.0.high_sierra.bottle.tar.gz
9
17
export CC=/usr/bin/clang
10
18
export CXX=/usr/bin/clang++
11
19
export CPPFLAGS=" $CPPFLAGS -Xpreprocessor -fopenmp"
You can’t perform that action at this time.
0 commit comments