@@ -327,7 +327,6 @@ def get_all_minor_versions_as_strings(version_info):
327
327
328
328
def get_supported (
329
329
versions = None , # type: Optional[List[str]]
330
- noarch = False , # type: bool
331
330
platform = None , # type: Optional[str]
332
331
impl = None , # type: Optional[str]
333
332
abi = None # type: Optional[str]
@@ -369,67 +368,66 @@ def get_supported(
369
368
370
369
abis .append ('none' )
371
370
372
- if not noarch :
373
- arch = platform or get_platform ()
374
- arch_prefix , arch_sep , arch_suffix = arch .partition ('_' )
375
- if arch .startswith ('macosx' ):
376
- # support macosx-10.6-intel on macosx-10.9-x86_64
377
- match = _osx_arch_pat .match (arch )
378
- if match :
379
- name , major , minor , actual_arch = match .groups ()
380
- tpl = '{}_{}_%i_%s' .format (name , major )
381
- arches = []
382
- for m in reversed (range (int (minor ) + 1 )):
383
- for a in get_darwin_arches (int (major ), m , actual_arch ):
384
- arches .append (tpl % (m , a ))
385
- else :
386
- # arch pattern didn't match (?!)
387
- arches = [arch ]
388
- elif arch_prefix == 'manylinux2014' :
389
- arches = [arch ]
390
- # manylinux1/manylinux2010 wheels run on most manylinux2014 systems
391
- # with the exception of wheels depending on ncurses. PEP 599 states
392
- # manylinux1/manylinux2010 wheels should be considered
393
- # manylinux2014 wheels:
394
- # https://www.python.org/dev/peps/pep-0599/#backwards-compatibility-with-manylinux2010-wheels
395
- if arch_suffix in {'i686' , 'x86_64' }:
396
- arches .append ('manylinux2010' + arch_sep + arch_suffix )
397
- arches .append ('manylinux1' + arch_sep + arch_suffix )
398
- elif arch_prefix == 'manylinux2010' :
399
- # manylinux1 wheels run on most manylinux2010 systems with the
400
- # exception of wheels depending on ncurses. PEP 571 states
401
- # manylinux1 wheels should be considered manylinux2010 wheels:
402
- # https://www.python.org/dev/peps/pep-0571/#backwards-compatibility-with-manylinux1-wheels
403
- arches = [arch , 'manylinux1' + arch_sep + arch_suffix ]
404
- elif platform is None :
371
+ arch = platform or get_platform ()
372
+ arch_prefix , arch_sep , arch_suffix = arch .partition ('_' )
373
+ if arch .startswith ('macosx' ):
374
+ # support macosx-10.6-intel on macosx-10.9-x86_64
375
+ match = _osx_arch_pat .match (arch )
376
+ if match :
377
+ name , major , minor , actual_arch = match .groups ()
378
+ tpl = '{}_{}_%i_%s' .format (name , major )
405
379
arches = []
406
- if is_manylinux2014_compatible ():
407
- arches .append ('manylinux2014' + arch_sep + arch_suffix )
408
- if is_manylinux2010_compatible ():
409
- arches .append ('manylinux2010' + arch_sep + arch_suffix )
410
- if is_manylinux1_compatible ():
411
- arches .append ('manylinux1' + arch_sep + arch_suffix )
412
- arches .append (arch )
380
+ for m in reversed (range (int (minor ) + 1 )):
381
+ for a in get_darwin_arches (int (major ), m , actual_arch ):
382
+ arches .append (tpl % (m , a ))
413
383
else :
384
+ # arch pattern didn't match (?!)
414
385
arches = [arch ]
386
+ elif arch_prefix == 'manylinux2014' :
387
+ arches = [arch ]
388
+ # manylinux1/manylinux2010 wheels run on most manylinux2014 systems
389
+ # with the exception of wheels depending on ncurses. PEP 599 states
390
+ # manylinux1/manylinux2010 wheels should be considered
391
+ # manylinux2014 wheels:
392
+ # https://www.python.org/dev/peps/pep-0599/#backwards-compatibility-with-manylinux2010-wheels
393
+ if arch_suffix in {'i686' , 'x86_64' }:
394
+ arches .append ('manylinux2010' + arch_sep + arch_suffix )
395
+ arches .append ('manylinux1' + arch_sep + arch_suffix )
396
+ elif arch_prefix == 'manylinux2010' :
397
+ # manylinux1 wheels run on most manylinux2010 systems with the
398
+ # exception of wheels depending on ncurses. PEP 571 states
399
+ # manylinux1 wheels should be considered manylinux2010 wheels:
400
+ # https://www.python.org/dev/peps/pep-0571/#backwards-compatibility-with-manylinux1-wheels
401
+ arches = [arch , 'manylinux1' + arch_sep + arch_suffix ]
402
+ elif platform is None :
403
+ arches = []
404
+ if is_manylinux2014_compatible ():
405
+ arches .append ('manylinux2014' + arch_sep + arch_suffix )
406
+ if is_manylinux2010_compatible ():
407
+ arches .append ('manylinux2010' + arch_sep + arch_suffix )
408
+ if is_manylinux1_compatible ():
409
+ arches .append ('manylinux1' + arch_sep + arch_suffix )
410
+ arches .append (arch )
411
+ else :
412
+ arches = [arch ]
415
413
416
- # Current version, current API (built specifically for our Python):
417
- for abi in abis :
418
- for arch in arches :
419
- supported .append (('%s%s' % (impl , versions [0 ]), abi , arch ))
420
-
421
- # abi3 modules compatible with older version of Python
422
- for version in versions [1 :]:
423
- # abi3 was introduced in Python 3.2
424
- if version in {'31' , '30' }:
425
- break
426
- for abi in abi3s : # empty set if not Python 3
427
- for arch in arches :
428
- supported .append (("%s%s" % (impl , version ), abi , arch ))
429
-
430
- # Has binaries, does not use the Python API:
414
+ # Current version, current API (built specifically for our Python):
415
+ for abi in abis :
431
416
for arch in arches :
432
- supported .append (('py%s' % (versions [0 ][0 ]), 'none' , arch ))
417
+ supported .append (('%s%s' % (impl , versions [0 ]), abi , arch ))
418
+
419
+ # abi3 modules compatible with older version of Python
420
+ for version in versions [1 :]:
421
+ # abi3 was introduced in Python 3.2
422
+ if version in {'31' , '30' }:
423
+ break
424
+ for abi in abi3s : # empty set if not Python 3
425
+ for arch in arches :
426
+ supported .append (("%s%s" % (impl , version ), abi , arch ))
427
+
428
+ # Has binaries, does not use the Python API:
429
+ for arch in arches :
430
+ supported .append (('py%s' % (versions [0 ][0 ]), 'none' , arch ))
433
431
434
432
# No abi / arch, but requires our implementation:
435
433
supported .append (('%s%s' % (impl , versions [0 ]), 'none' , 'any' ))
0 commit comments