From db0267abcd8440df4f0faa842485aa6a73675321 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sat, 27 May 2017 15:31:22 -0700 Subject: [PATCH] deploy-ng: Specify an abi tag when downloading wheels for other platforms with pip download --- direct/src/showutil/dist.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/direct/src/showutil/dist.py b/direct/src/showutil/dist.py index 698d4969e2..18f6d19781 100644 --- a/direct/src/showutil/dist.py +++ b/direct/src/showutil/dist.py @@ -82,6 +82,10 @@ class build_apps(distutils.core.Command): if use_wheels: whldir = os.path.join(self.build_base, '__whl_cache__') + abi_tag = pip.pep425tags.get_abi_tag() + + if 'u' in abi_tag and not platform.startswith('manylinux'): + abi_tag = abi_tag.replace('u', '') pip_args = [ 'download', @@ -89,6 +93,7 @@ class build_apps(distutils.core.Command): '-r', self.requirements_path, '--only-binary', ':all:', '--platform', platform, + '--abi', abi_tag ] for index in self.pypi_extra_indexes: