Skip to content

Commit d0fa132

Browse files
committed
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".
1 parent 4c1a7cd commit d0fa132

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

news/7352.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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".

src/pip/_internal/pep425tags.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,13 @@ def get_platform():
156156

157157
# XXX remove distutils dependency
158158
result = distutils.util.get_platform().replace('.', '_').replace('-', '_')
159-
if result == "linux_x86_64" and _is_running_32bit():
159+
if _is_running_32bit():
160160
# 32 bit Python program (running on a 64 bit Linux): pip should only
161161
# install and run 32 bit compiled extensions in that case.
162-
result = "linux_i686"
162+
if result == "linux_x86_64":
163+
result = "linux_i686"
164+
elif result == "linux_aarch64":
165+
result = "linux_armv7l"
163166

164167
return result
165168

0 commit comments

Comments
 (0)