Skip to content

Commit 7d978b7

Browse files
committed
set MACOSX_DEPLOYMENT_TARGET for cibuildwheel
1 parent ce151d9 commit 7d978b7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030

3131
- name: Build wheels
3232
uses: pypa/[email protected]
33+
env:
34+
CIBW_ENVIRONMENT: ${{ matrix.os == 'macos-13' && 'MACOSX_DEPLOYMENT_TARGET=13.0' || '' }}
35+
CIBW_ENVIRONMENT_LINUX: 'PATH=$PATH:$HOME/.cargo/bin'
3336

3437
- uses: actions/upload-artifact@v4
3538
with:

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,4 @@ skip = "pp*" # skip PyPy
101101

102102
[tool.cibuildwheel.linux]
103103
# cibuildwheel runs linux in containers so we need to install rust there
104-
before-all = "curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y"
105-
environment = { PATH = "$PATH:$HOME/.cargo/bin" }
104+
before-all = "curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y"

0 commit comments

Comments
 (0)