Skip to content

Commit

Permalink
uv: patch venv libc detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause authored and TomJo2000 committed Oct 23, 2024
1 parent 38f7a8b commit 11b09cc
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/uv/0002-venv.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
diff --git a/crates/uv-python/python/get_interpreter_info.py b/crates/uv-python/python/get_interpreter_info.py
index d056d385..63edefd9 100644
--- a/crates/uv-python/python/get_interpreter_info.py
+++ b/crates/uv-python/python/get_interpreter_info.py
@@ -461,6 +461,7 @@ def get_operating_system_and_architecture():
# noinspection PyProtectedMember
from .packaging._musllinux import _get_musl_version

+ """
musl_version = _get_musl_version(sys.executable)
glibc_version = _get_glibc_version()
if musl_version:
@@ -478,6 +479,12 @@ def get_operating_system_and_architecture():
else:
print(json.dumps({"result": "error", "kind": "libc_not_found"}))
sys.exit(0)
+ """
+ operating_system = {
+ "name": "linux",
+ "major": 1,
+ "minor": 0,
+ }
elif operating_system == "win":
operating_system = {
"name": "windows",
@@ -544,7 +551,7 @@ def main() -> None:
}
os_and_arch = get_operating_system_and_architecture()

- manylinux_compatible = True
+ manylinux_compatible = False
if os_and_arch["os"]["name"] == "manylinux":
# noinspection PyProtectedMember
from .packaging._manylinux import _get_glibc_version, _is_compatible
1 change: 1 addition & 0 deletions packages/uv/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="Apache-2.0, MIT"
TERMUX_PKG_LICENSE_FILE="LICENSE-APACHE, LICENSE-MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.4.25"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/astral-sh/uv/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=b3bd159eb8a40ad29e8c5dc4bec84c03a5bcfef04ad75e0665777c21d886b56c
TERMUX_PKG_BUILD_DEPENDS="zstd"
Expand Down

0 comments on commit 11b09cc

Please sign in to comment.