Skip to content

Add minimum macosx version #22240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 17, 2022
Merged

Add minimum macosx version #22240

merged 2 commits into from
Feb 17, 2022

Conversation

dstansby
Copy link
Member

@dstansby dstansby commented Jan 15, 2022

This is a draft to see if we can specify the macosx minimum version to be higher to fix wheel building. See #22179 (comment) for details on why the wheels are currently failing.

As per #18128 (comment) and other discussion on that issue I've set the minimum version to 10.12.

Fixes #18066

@dstansby dstansby added the CI: Run cibuildwheel Run wheel building tests on a PR label Jan 15, 2022
@dstansby dstansby marked this pull request as draft January 15, 2022 15:54
@dstansby dstansby added the Build label Jan 15, 2022
@QuLogic
Copy link
Member

QuLogic commented Jan 19, 2022

Probably should set the deployment target in cibuildwheel.

@dstansby dstansby added this to the v3.6.0 milestone Jan 20, 2022
@dstansby dstansby marked this pull request as ready for review January 20, 2022 22:43
setupext.py Outdated
Comment on lines 734 to 735
ext.extra_compile_args.extend(['-Werror', '-mmacosx-version-min=10.12'])
ext.extra_link_args.extend(['-framework', 'Cocoa', '-mmacosx-version-min=10.12'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually need this? I think the environment variable MACOSX_DEPLOYMENT_TARGET should be used instead, which you already have defined above. This says they are synonymous, and more importantly that this flag is actually a gcc flag that clang supports for now, but potentially not into the future.
https://stackoverflow.com/questions/25352389/what-is-the-difference-between-macosx-deployment-target-and-mmacosx-version-min

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed this change from my latest commit to see if it's needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out we didn't need this - builds seem to be fine with just the environment variable set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build CI: Run cibuildwheel Run wheel building tests on a PR OS: Apple
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document minimum supported OSX version for macos backend
3 participants