Skip to content

Commit abf54df

Browse files
committed
Make: Override MACOSX_DEPLOYMENT_TARGET
1 parent 1db702a commit abf54df

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/prerelease.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ jobs:
324324
python -m pip install --upgrade pip
325325
pip install pytest pytest-repeat numpy pyarrow
326326
python -m pip install .
327+
env:
328+
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
327329
- name: Test Python
328330
run: pytest scripts/test.py -s -x
329331

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
run: cibuildwheel --output-dir wheelhouse
9999
env:
100100
CIBW_BUILD: cp${{ matrix.python-version }}-*
101+
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
101102
- name: Upload wheels
102103
uses: actions/upload-artifact@v4
103104
with:

pyproject.toml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,40 +79,43 @@ before-build = ["rd /s /q {project}\\build || echo Done"]
7979
[[tool.cibuildwheel.overrides]]
8080
select = "*-win_amd64"
8181
inherit.environment = "append"
82-
environment.SZ_X86_64="1"
82+
environment.SZ_X86_64 = "1"
8383

8484
[[tool.cibuildwheel.overrides]]
8585
select = "*-manylinux*_x86_64"
8686
inherit.environment = "append"
87-
environment.SZ_X86_64="1"
87+
environment.SZ_X86_64 = "1"
8888

8989
[[tool.cibuildwheel.overrides]]
9090
select = "*-musllinux*_x86_64"
9191
inherit.environment = "append"
92-
environment.SZ_X86_64="1"
92+
environment.SZ_X86_64 = "1"
9393

9494
[[tool.cibuildwheel.overrides]]
9595
select = "*-macos*_x86_64"
9696
inherit.environment = "append"
97-
environment.SZ_X86_64="1"
97+
environment.SZ_X86_64 = "1"
9898

9999
# Detect ARM 64-bit builds
100100
[[tool.cibuildwheel.overrides]]
101101
select = "*-win_arm64"
102102
inherit.environment = "append"
103-
environment.SZ_ARM64="1"
103+
environment.SZ_ARM64 = "1"
104104

105105
[[tool.cibuildwheel.overrides]]
106106
select = "*-manylinux*_aarch64"
107107
inherit.environment = "append"
108-
environment.SZ_ARM64="1"
108+
environment.SZ_ARM64 = "1"
109109

110110
[[tool.cibuildwheel.overrides]]
111111
select = "*-musllinux*_aarch64"
112112
inherit.environment = "append"
113-
environment.SZ_ARM64="1"
113+
environment.SZ_ARM64 = "1"
114114

115115
[[tool.cibuildwheel.overrides]]
116116
select = "*-macos*_arm64"
117117
inherit.environment = "append"
118-
environment.SZ_ARM64="1"
118+
environment.SZ_ARM64 = "1"
119+
120+
[tool.cibuildwheel.macos.environment]
121+
MACOSX_DEPLOYMENT_TARGET = "10.11"

0 commit comments

Comments
 (0)