Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/7352.bugfix
Original file line number Diff line number Diff line change
@@ -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".
7 changes: 5 additions & 2 deletions src/pip/_internal/pep425tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down