Skip to content

fix: warning when building macOS arm64 wheels#1312

Merged
joerick merged 2 commits intopypa:mainfrom
mayeut:fix-mdt-arm64
Oct 21, 2022
Merged

fix: warning when building macOS arm64 wheels#1312
joerick merged 2 commits intopypa:mainfrom
mayeut:fix-mdt-arm64

Conversation

@mayeut
Copy link
Copy Markdown
Member

@mayeut mayeut commented Oct 14, 2022

When MACOSX_DEPLOYMENT_TARGET is not set by the user, cibuildwheel always defaults to 10.9. This leads to a warning when building arm64 wheels.
This commit removes the warning by setting the default to 11.0 for arm64 builds.

Reported in #1300 (comment)

When `MACOSX_DEPLOYMENT_TARGET` is not set by the user, cibuildwheel always defaults to `10.9`.
This leads to warning when building arm64 wheels.
This commit removes the warning by setting the default to `11.0` for arm64 builds.
@mayeut
Copy link
Copy Markdown
Member Author

mayeut commented Oct 14, 2022

I chose to add the test in an existing one not increase test time.
I chose to test both stdout & stderr streams on purpose even if, today, it's on stderr.
I was a bit hesitant to check for a shorter string. If the string changes, the test won't be doing anything useful & maybe just checking for warning is better even if not targeted (thus could report unrelated warnings in the future).

@joerick
Copy link
Copy Markdown
Contributor

joerick commented Oct 16, 2022

@mayeut i hope it's okay I added another test to this, just checking that the warning is detected by forcing it to be produced with a MACOSX_DEPLOYMENT_TARGET=10.8. It's only a 5s test.

@joerick joerick merged commit 1140a0c into pypa:main Oct 21, 2022
@mayeut mayeut deleted the fix-mdt-arm64 branch October 21, 2022 20:41
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.

3 participants