Skip to content
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

fix: macOS platform tags with old macOS SDK #513

Merged
merged 2 commits into from Jun 17, 2022

Conversation

mayeut
Copy link
Member

@mayeut mayeut commented Feb 27, 2022

This retrieves the real macOS version to compute macOS platform tags when the python interpreter is built with an old macOS SDK.

fixes #497

There are no official docs from Apple on this. This is based on a couple blog posts linked in #497 and my own observations. Most notably, since there are no docs, I can't be sure that the only effect of Apple's trick is to change the version. There might be other (still undocumented...) side-effects.

Copy link
Member

@brettcannon brettcannon left a comment

Choose a reason for hiding this comment

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

I have not had a chance to do a full review, but I do have some asks to tweak the formatting of the comments.

packaging/tags.py Outdated Show resolved Hide resolved
tests/test_tags.py Outdated Show resolved Hide resolved
tests/test_tags.py Show resolved Hide resolved
@brettcannon
Copy link
Member

@mayeut I just wanted to quickly let you know I have not forgotten about this PR (busy work stuff plus trying to prioritize bugfixes for Python 3.11).

@mayeut
Copy link
Member Author

mayeut commented Jun 8, 2022

I understand, thanks for letting me know. I'll try to keep it up-to-date in the mean time.

This retrieves the real macOS version to compute macOS platform tags when the python interpreter is built with an old macOS SDK.

fixes pypa#497
@brettcannon brettcannon enabled auto-merge (squash) June 17, 2022 21:17
@brettcannon brettcannon merged commit 67c4a28 into pypa:main Jun 17, 2022
@brettcannon
Copy link
Member

Thanks for the PR and your patience. 🙂

@mayeut mayeut deleted the macos-version branch June 18, 2022 07:18
hrnciar pushed a commit to hrnciar/packaging that referenced this pull request Jul 1, 2022
This retrieves the real macOS version to compute macOS platform tags when the python interpreter is built with an old macOS SDK that reports 10.16 as the macOS version.

fixes pypa#497

Co-authored-by: Brett Cannon <brett@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

packaging does not know that macOS 10.16 and 11.0 are the same
3 participants