diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wheel/bdist_wheel.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/wheel/bdist_wheel.py b/src/wheel/bdist_wheel.py index 80e43d0..585d136 100644 --- a/src/wheel/bdist_wheel.py +++ b/src/wheel/bdist_wheel.py @@ -50,9 +50,14 @@ def get_platform(archive_root): result = distutils.util.get_platform() if result.startswith("macosx") and archive_root is not None: result = calculate_macosx_platform_tag(archive_root, result) - if result == "linux_x86_64" and sys.maxsize == 2147483647: - # pip pull request #3497 - result = "linux_i686" + + # Return a different tag for a 64-bit CPU running a 32-bit OS + if sys.maxsize == 2147483647: + if result == "linux-x86_64": + result = "linux-i686" + elif result == "linux-aarch64": + result = "linux-armv7l" + return result |