Skip to content

Commit 27f4471

Browse files
committed
add missing multi-arch tags
all multi-arch tags are supported: fat, intel, fat3, fat64, universal
1 parent 471f7b4 commit 27f4471

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pip/pep425tags.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,19 @@ def get_supported(versions=None, noarch=False):
8181
if not noarch:
8282
arch = get_platform()
8383
if sys.platform == 'darwin':
84-
# support macosx-10.6-intel on macosx-10.9-intel
84+
# support macosx-10.6-intel on macosx-10.9-x86_64
8585
match = _osx_arch_pat.match(arch)
8686
if match:
8787
name, major, minor, actual_arch = match.groups()
8888
actual_arches = [actual_arch]
89+
if actual_arch in ('i386', 'ppc'):
90+
actual_arches.append('fat')
8991
if actual_arch in ('i386', 'x86_64'):
9092
actual_arches.append('intel')
93+
if actual_arch in ('i386', 'ppc', 'x86_64'):
94+
actual_arches.append('fat3')
95+
if actual_arch in ('ppc64', 'x86_64'):
96+
actual_arches.append('fat64')
9197
if actual_arch in ('i386', 'x86_64', 'intel', 'ppc', 'ppc64'):
9298
actual_arches.append('universal')
9399
tpl = '{0}_{1}_%i_%s'.format(name, major)

0 commit comments

Comments
 (0)