Browse Source

dist: Also accept manylinux wheels when requesting generic linux tag

rdb 4 years ago
parent
commit
67b89983ac
1 changed files with 9 additions and 1 deletions
  1. 9 1
      direct/src/dist/commands.py

+ 9 - 1
direct/src/dist/commands.py

@@ -476,10 +476,18 @@ class build_apps(setuptools.Command):
             '-d', whldir,
             '-r', self.requirements_path,
             '--only-binary', ':all:',
-            '--platform', platform,
             '--abi', abi_tag,
+            '--platform', platform,
         ]
 
+        if platform.startswith('linux_'):
+            # Also accept manylinux.
+            arch = platform[6:]
+            if sys.version_info >= (3, 10):
+                pip_args += ['--platform', 'manylinux2010_' + arch]
+            else:
+                pip_args += ['--platform', 'manylinux1_' + arch]
+
         if self.use_optimized_wheels:
             pip_args += [
                 '--extra-index-url', self.optimized_wheel_index