dist: Default to manylinux2010 for Python 3.10+

manylinux1 is not being offered for Python 3.10, so no thirdparty package will have wheels available for this
This commit is contained in:
rdb 2021-08-30 18:14:26 +02:00
parent b291db2556
commit 3d386d2d63

View File

@ -242,6 +242,9 @@ class build_apps(setuptools.Command):
'macosx_10_6_x86_64', 'macosx_10_6_x86_64',
'win_amd64', 'win_amd64',
] ]
if sys.version_info >= (3, 10):
# manylinux1 is not offered for Python 3.10 anymore
self.platforms[0] = 'manylinux2010_x86_64'
if sys.version_info >= (3, 8): if sys.version_info >= (3, 8):
# This version of Python is only available for 10.9+. # This version of Python is only available for 10.9+.
self.platforms[1] = 'macosx_10_9_x86_64' self.platforms[1] = 'macosx_10_9_x86_64'
@ -1393,6 +1396,8 @@ class bdist_apps(setuptools.Command):
DEFAULT_INSTALLERS = { DEFAULT_INSTALLERS = {
'manylinux1_x86_64': ['gztar'], 'manylinux1_x86_64': ['gztar'],
'manylinux1_i686': ['gztar'], 'manylinux1_i686': ['gztar'],
'manylinux2010_x86_64': ['gztar'],
'manylinux2010_i686': ['gztar'],
# Everything else defaults to ['zip'] # Everything else defaults to ['zip']
} }