Skip to content

Commit ad5cc1a

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

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

packages/uv/00003-android-as-linux.patch

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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 44abe7056..5629ad9d8 100644
33
--- a/crates/uv-python/python/get_interpreter_info.py
44
+++ b/crates/uv-python/python/get_interpreter_info.py
55
@@ -446,7 +446,7 @@ def get_operating_system_and_architecture():
@@ -11,4 +11,19 @@ index ca83e8d..73110d4 100644
1111
# noinspection PyProtectedMember
1212
from .packaging._manylinux import _get_glibc_version
1313

14-
14+
@@ -461,6 +461,15 @@ def get_operating_system_and_architecture():
15+
elif architecture == "aarch64":
16+
architecture = "armv8l"
17+
18+
+ # At least for Android devices using Python not as Python 3.13+ *Android* (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+
musl_version = _get_musl_version(sys.executable)
28+
glibc_version = _get_glibc_version()
29+

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)