-
Notifications
You must be signed in to change notification settings - Fork 249
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
Add intel cpu_arch on MacOS as universal-compatible #361
Conversation
@@ -410,7 +410,7 @@ def _mac_binary_formats(version, cpu_arch): | |||
if cpu_arch in {"arm64", "x86_64"}: | |||
formats.append("universal2") | |||
|
|||
if cpu_arch in {"x86_64", "i386", "ppc64", "ppc"}: | |||
if cpu_arch in {"x86_64", "i386", "ppc64", "ppc", "intel"}: |
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.
Why do we add only "universal" and not "universal2" for "intel"? (I'm not sure when this arch name is used)
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.
intel
refers to a universal binary that works on i386
and x86_64
-- which are both supported by universal
.
The slightly broader question here is whether we want to allow universal architectures (i.e. architectures used to refer to binaries that work on multiple ISAs) to be passed into this function as As on today, there's only 1 special case involved here: Looking at the downstream pip implementation of allowing users to pass in custom tags, and given that there's only 1 special case we allow today, I feel like it is only natural to conclude "yes, we should allow this". :) |
@ned-deily @ronaldoussoren does this change make sense to you? @pradyunsg I think you're right, but I just want the Mac expert's opinion. But if you don't hear from anyone within a day and need to get this out for pip then I'm fine merging it. |
Sure! I don't mind waiting here and am 100% on board for waiting on a Mac expert's opinion. As noted in pypa/pip#9170 (comment), I don't think a large group of people are gonna hit this issue, but it'd still be nice to have a fix sometime reasonably soon. |
Assuming That said, it is highly unlikely that you'll ever run into these. AFAIK we've never shipped "universal" installers for CPython. |
LOL Seems like this is purely theoretical use case then? I genuinely don't think anyone other than CPython devs are building CPython's MacOS Installers. |
LGTM, too. Thanks! BTW, there are builders and users of universal macOS binaries other than just for python.org downloadable installers. For example, third-party apps written in Python generally need to include a copy of Python that may be built by the app developer and there are probably still some apps being shipped that still support the |
As noted in #319 (comment)
Identified in pypa/pip#9170.