Skip to content

Commit aa9f85d

Browse files
author
Benjamin Loison
committed
fix(main/uv): Fix #28771: Convert CPU architectures to supported ones
1 parent 197270b commit aa9f85d

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/crates/uv-python/python/get_interpreter_info.py b/crates/uv-python/python/get_interpreter_info.py
2-
index ca83e8d..73110d4 100644
2+
index 46901a40f1438..2e03f8013de2a 100644
33
--- a/crates/uv-python/python/get_interpreter_info.py
44
+++ b/crates/uv-python/python/get_interpreter_info.py
5-
@@ -446,7 +446,7 @@ def get_operating_system_and_architecture():
5+
@@ -456,7 +456,7 @@ def get_operating_system_and_architecture():
66
)
77
sys.exit(0)
88

@@ -11,4 +11,19 @@ index ca83e8d..73110d4 100644
1111
# noinspection PyProtectedMember
1212
from .packaging._manylinux import _get_glibc_version
1313

14-
14+
@@ -487,6 +487,15 @@ def get_operating_system_and_architecture():
15+
"minor": glibc_version[1],
16+
}
17+
elif hasattr(sys, "getandroidapilevel"):
18+
+ # For Python 3.13+ (for instance Termux)
19+
+ android_abi_to_arch = {
20+
+ "arm64_v8a": "aarch64",
21+
+ "armeabi_v7a": "armv7l",
22+
+ "x86": "i686",
23+
+ }
24+
+
25+
+ architecture = android_abi_to_arch.get(architecture, architecture)
26+
+
27+
operating_system = {
28+
"name": "android",
29+
"api_level": sys.getandroidapilevel(),

packages/uv/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="Apache-2.0, MIT"
44
TERMUX_PKG_LICENSE_FILE="LICENSE-APACHE, LICENSE-MIT"
55
TERMUX_PKG_MAINTAINER="@termux"
66
TERMUX_PKG_VERSION="0.9.15"
7-
TERMUX_PKG_REVISION=1
7+
TERMUX_PKG_REVISION=2
88
TERMUX_PKG_SRCURL=https://github.com/astral-sh/uv/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
99
TERMUX_PKG_SHA256=4bd98152fbeb3cbe4a06fd0d49824d44db3023e24d17ba265df71fd52591bc09
1010
TERMUX_PKG_DEPENDS="zstd"

0 commit comments

Comments
 (0)