-
Notifications
You must be signed in to change notification settings - Fork 253
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
Conversation
979ae0f
to
3b6adbe
Compare
bin/update_pythons.py
Outdated
if version <= Version("3.8.9999"): | ||
file_idents = ("macosx10.9.pkg",) | ||
else: | ||
file_idents = ("macos11.pkg", "macosx10.9.pkg") |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
3b6adbe
to
ada6c64
Compare
There was a problem hiding this 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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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