This commit is contained in:
Marc Beninca 2024-09-29 21:41:09 +02:00
parent fdc01a98b6
commit 925cbbdeca
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

9
re.sh
View file

@ -84,8 +84,11 @@ set \
uv_python() {
echo
export UV_PYTHON_INSTALL_MIRROR="${url}/cpypy"
uv python install "${2}"
unset UV_PYTHON_INSTALL_MIRROR
export UV_PYPY_INSTALL_MIRROR="${UV_PYTHON_INSTALL_MIRROR}"
uv python install "${1}"
unset \
UV_PYPY_INSTALL_MIRROR \
UV_PYTHON_INSTALL_MIRROR
}
uv_venv() {
echo
@ -115,7 +118,7 @@ venvs() {
"create")
export UV_PYTHON_INSTALL_DIR="${venv}/cpypy"
echo "→ install python ${version}"
uv_python "${venv}" "${version}"
uv_python "${version}"
echo "→ create venv ${version}"
uv_venv "${venv}" "${version}"
unset UV_PYTHON_INSTALL_DIR