Browse Source

deploy-ng: fix building a Linux build from Python 2.7 on Windows

rdb 7 years ago
parent
commit
229e1a1b1f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/showutil/dist.py

+ 4 - 0
direct/src/showutil/dist.py

@@ -195,6 +195,10 @@ class build_apps(setuptools.Command):
         if 'u' in abi_tag and (platform.startswith('win') or platform.startswith('macosx')):
             abi_tag = abi_tag.replace('u', '')
 
+        # For these distributions, we need to append 'u' on Linux
+        if abi_tag in ('cp26m', 'cp27m', 'cp32m') and not platform.startswith('win') and not platform.startswith('macosx'):
+            abi_tag += 'u'
+
         pip_version = pip.__version__.split('.')
         if int(pip_version[0]) < 9:
             raise RuntimeError("pip 9.0 or greater is required, but found {}".format(pip.__version__))