Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv: patch venv libc detection #21942

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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