Browse Source

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
rdb 4 years ago
parent
commit
3d386d2d63
1 changed files with 5 additions and 0 deletions
  1. 5 0
      direct/src/dist/commands.py

+ 5 - 0
direct/src/dist/commands.py

@@ -242,6 +242,9 @@ class build_apps(setuptools.Command):
             'macosx_10_6_x86_64',
             '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):
             # This version of Python is only available for 10.9+.
             self.platforms[1] = 'macosx_10_9_x86_64'
@@ -1393,6 +1396,8 @@ class bdist_apps(setuptools.Command):
     DEFAULT_INSTALLERS = {
         'manylinux1_x86_64': ['gztar'],
         'manylinux1_i686': ['gztar'],
+        'manylinux2010_x86_64': ['gztar'],
+        'manylinux2010_i686': ['gztar'],
         # Everything else defaults to ['zip']
     }