mirror of
https://github.com/astral-sh/uv
synced 2026-06-21 13:47:25 +00:00
f13abc388e
Created at https://github.com/astral-sh/termux-python Termux's package repositories seem to be horribly unstable.
16 lines
414 B
Bash
Executable File
16 lines
414 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
|
|
# Install uv into the Termux prefix
|
|
cp /uv /data/data/com.termux/files/usr/bin/uv
|
|
chmod +x /data/data/com.termux/files/usr/bin/uv
|
|
|
|
# Test uv
|
|
uv --version
|
|
|
|
# Termux uses Bionic libc (not glibc or musl), so uv cannot discover
|
|
# managed Python installations. Use only-system to skip that check.
|
|
export UV_PYTHON_PREFERENCE=only-system
|
|
uv python find
|
|
uv run -- python --version
|