Files
astral-sh-uv/test/integration/termux.sh
Zanie Blue f13abc388e Use a Termux image with Python pre-installed instead (#18573)
Created at https://github.com/astral-sh/termux-python

Termux's package repositories seem to be horribly unstable.
2026-03-19 20:59:13 +00:00

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