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

pin CPython 3.8 installer on macosx10.9 #664

Merged
merged 1 commit into from
May 8, 2021

Conversation

mayeut
Copy link
Member

@mayeut mayeut commented May 8, 2021

macosx11 installer requires macOS 11+ for CPython 3.8 while macosx11 installer for CPython 3.9+ only requires macOS 10.9+ on x86_64.

c.f. comments in #663

if version <= Version("3.8.9999"):
file_idents = ("macosx10.9.pkg",)
else:
file_idents = ("macos11.pkg", "macosx10.9.pkg")
Copy link
Member Author

@mayeut mayeut May 8, 2021

Choose a reason for hiding this comment

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

Should we just drop the tuple here and just go ahead and define file_ident = "macos11.pkg" once and for all ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nevermind, I went this way just to silence the MyPy issue - I guess I could have solved differently.

macosx11 installer requires macOS 11+ for CPython 3.8 while macosx11 installer for CPython 3.9+ only requires macOS 10.9+ on x86_64.
Copy link
Contributor

@joerick joerick left a comment

Choose a reason for hiding this comment

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

looks good to me but I'll defer to @henryiii as he wrote this script originally

if version <= Version("3.8.9999"):
file_ident = "macosx10.9.pkg"
else:
file_ident = "macos11.pkg"
Copy link
Contributor

Choose a reason for hiding this comment

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

We could instead take the old file identifier, and only look for that.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is fine for now, but that's a possible update later to remove the explicit version check.

@joerick joerick merged commit 38b4626 into pypa:master May 8, 2021
@mayeut mayeut deleted the python-3.8-macosx10.9 branch May 8, 2021 16:30
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