diff --git a/news/7352.bugfix b/news/7352.bugfix new file mode 100644 index 00000000000..13161621297 --- /dev/null +++ b/news/7352.bugfix @@ -0,0 +1 @@ +Support 32-bit Linux running on 64-bit ARM arch. A 32-bit Linux running on 64-bit ARM arch should have platform "linux_armv7l". diff --git a/src/pip/_internal/pep425tags.py b/src/pip/_internal/pep425tags.py index 5e1b238e2e5..c628e04f788 100644 --- a/src/pip/_internal/pep425tags.py +++ b/src/pip/_internal/pep425tags.py @@ -156,10 +156,13 @@ def get_platform(): # XXX remove distutils dependency result = distutils.util.get_platform().replace('.', '_').replace('-', '_') - if result == "linux_x86_64" and _is_running_32bit(): + if _is_running_32bit(): # 32 bit Python program (running on a 64 bit Linux): pip should only # install and run 32 bit compiled extensions in that case. - result = "linux_i686" + if result == "linux_x86_64": + result = "linux_i686" + elif result == "linux_aarch64": + result = "linux_armv7l" return result