Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Description
Bug report
Bug description:
While formalising the definition of platform tags for iOS and Android in packaging.python.org/pull/1804, I notice that macOS combined architecture tags (e.g.,universal2) aren't documented.
The canonical definition is here:
Lines 546 to 562 incdcacec
| iflen(archs)==1: | |
| machine=archs[0] | |
| elifarchs== ('arm64','x86_64'): | |
| machine='universal2' | |
| elifarchs== ('i386','ppc'): | |
| machine='fat' | |
| elifarchs== ('i386','x86_64'): | |
| machine='intel' | |
| elifarchs== ('i386','ppc','x86_64'): | |
| machine='fat3' | |
| elifarchs== ('ppc64','x86_64'): | |
| machine='fat64' | |
| elifarchs== ('i386','ppc','ppc64','x86_64'): | |
| machine='universal' | |
| else: | |
| raiseValueError( | |
| "Don't know machine value for archs=%r"% (archs,)) |
However, these tags aren't documented as part of themac usage guide, beyond a passing reference to the default installers being "universal2".
Thedocumentation of theconfigure options that enable these builds add an extra layer of complexity, as they describe options that exist, but (a) the names don't match the values returned bysysconfig.get_platform(), and (b) any mapping between the two isn't documented. What architectures are built for a "3-way" build? What's the corresponding wheel platform tag? (i386, ppc and x86_64; and fat3, respectively)
These options are almost entirely anachronistic as Python isn't maintaining support for i386, ppc or ppc64. The "fix" here might be to remove support for all tags other thanuniversal2.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
Metadata
Metadata
Assignees
Projects
Status