Repository navigation
.github: build macOS wheels at cibuildwheel's default deployment target - #797
Open
mario4tier wants to merge 1 commit into
Open
mario4tier wants to merge 1 commit into
mario4tier wants to merge 1 commit into
Conversation
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.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #795.
Removes the
MACOSX_DEPLOYMENT_TARGETpins, so each macOS wheel gets cibuildwheel's default floor:macosx_14_0macosx_11_0macosx_13_0macosx_10_9macosx_13_0macosx_10_13macosx_13_0macosx_10_15-Werror=unguarded-availabilityfails the build if the code calls an API newer than the floor without a runtime check. It goes inCCbecause setuptools replaces Python's compile flags with an environmentCFLAGS.Tested with a full
wheels.ymlrun on master plus this PR and #798: all jobs pass, and the binaries in the wheels declare the floors above.