Skip to content

Commit 912b9e5

Browse files
committed
update cibuildwheel
1 parent 9a72ded commit 912b9e5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build_wheel.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
platform: [windows-latest, ubuntu-latest, macos-15-intel, macos-latest]
14+
platform: [windows-latest, ubuntu-latest, macos-15-intel, macos-14]
1515
env:
1616
CIBW_SKIP: 'pp*'
1717
CIBW_ARCHS: 'auto64'
1818
CIBW_MANYLINUX_X86_64_IMAGE: 'manylinux_2_28'
1919
CIBW_PROJECT_REQUIRES_PYTHON: '>=3.10'
2020
CIBW_TEST_REQUIRES: 'pytest'
21+
MACOSX_DEPLOYMENT_TARGET: '14.0'
2122
defaults:
2223
run:
2324
shell: bash -l {0}
@@ -28,7 +29,7 @@ jobs:
2829
- uses: actions/checkout@v4
2930
with:
3031
submodules: true
31-
- name: Set up Python version ${{ matrix.version }}
32+
- name: Set up Python version
3233
uses: actions/setup-python@v4
3334
with:
3435
python-version: "3.x"
@@ -43,7 +44,7 @@ jobs:
4344
echo "export LDFLAGS=\"$LDFLAGS -Wl,-rpath,/usr/local/opt/libomp/lib -L/usr/local/opt/libomp/lib -lomp\"" >> ~/.bashrc
4445
source ~/.bashrc
4546
- name: Install OMP (MacOS M1)
46-
if: matrix.platform == 'macos-latest'
47+
if: matrix.platform == 'macos-14'
4748
run: |
4849
brew install llvm@20 libomp
4950
echo "export CC=/opt/homebrew/opt/llvm@20/bin/clang" >> ~/.bashrc
@@ -66,7 +67,7 @@ jobs:
6667
export PATH="$pythonLocation:$PATH"
6768
CIBW_TEST_COMMAND='cd ${pwd}/tmp && python -m pytest tests'
6869
echo "CIBW_TEST_COMMAND=${CIBW_TEST_COMMAND}" >> $GITHUB_ENV
69-
python -m pip install cibuildwheel==2.16.5
70+
python -m pip install cibuildwheel==2.23.3
7071
python -m cibuildwheel --output-dir ./wheelhouse
7172
- uses: actions/upload-artifact@v4
7273
with:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class BuildExt(build_ext):
6969
}
7070

7171
if sys.platform == "darwin":
72-
darwin_opts = ["-stdlib=libc++", "-mmacosx-version-min=10.9"]
72+
darwin_opts = ["-stdlib=libc++"]
7373
c_opts["unix"] = [*darwin_opts, "-fopenmp", "-O2"]
7474
l_opts["unix"] = [*darwin_opts, "-lomp"]
7575

0 commit comments

Comments
 (0)