Skip to content

.github: build macOS wheels at cibuildwheel's default deployment target - #797

Merged
mario4tier merged 1 commit into
devfrom
macos-wheel-floor
Nov 27, 2026
Merged

mario4tier merged 1 commit into
devfrom
macos-wheel-floor

Conversation

@mario4tier

@mario4tier mario4tier commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Part of #795.

Removes the MACOSX_DEPLOYMENT_TARGET pins, so each macOS wheel gets cibuildwheel's default floor:

wheel 0.8.3.post1 this PR
arm64 macosx_14_0 macosx_11_0
x86_64, Python 3.10 and 3.11 macosx_13_0 macosx_10_9
x86_64, Python 3.12 and 3.13 macosx_13_0 macosx_10_13
x86_64, Python 3.14 and later macosx_13_0 macosx_10_15

-Werror=unguarded-availability fails the build if the code calls an API newer than the floor without a runtime check. It goes in CC because setuptools replaces Python's compile flags with an environment CFLAGS.

Tested with a full wheels.yml run on master plus this PR and #798: all jobs pass, and the binaries in the wheels declare the floors above.

Drop the MACOSX_DEPLOYMENT_TARGET overrides (13.7 on x86_64, 14.0 on
arm64), so cibuildwheel's defaults apply: 11.0 on arm64 and, on x86_64,
10.9 for CPython 3.10 and 3.11, 10.13 for 3.12 and 3.13, 10.15 from 3.14.
setup.py already passes the target on to the TA-Lib C build.

Add -Werror=unguarded-availability to the macOS builds, so a call to an
API newer than the target fails the build. It goes in through CC, which
CMake and setuptools both apply to every compile: an environment CFLAGS
would replace the interpreter's own compile flags for the extension.

Part of #795.
@mario4tier
mario4tier merged commit 99c75b3 into dev Nov 27, 2026
7 checks passed
@mario4tier
mario4tier deleted the macos-wheel-floor branch November 28, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant