Skip to content

Commit

Permalink
Support 32-bit Linux running on 64-bit ARM arch.
Browse files Browse the repository at this point in the history
A 32-bit Linux running on 64-bit ARM arch should have platform "linux_armv7l".
  • Loading branch information
xuhdev committed Nov 14, 2019
1 parent 4c1a7cd commit ae53b60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit ae53b60

Please sign in to comment.