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() { uv_python() {
echo echo
export UV_PYTHON_INSTALL_MIRROR="${url}/cpypy" export UV_PYTHON_INSTALL_MIRROR="${url}/cpypy"
uv python install "${2}" export UV_PYPY_INSTALL_MIRROR="${UV_PYTHON_INSTALL_MIRROR}"
unset UV_PYTHON_INSTALL_MIRROR uv python install "${1}"
unset \
UV_PYPY_INSTALL_MIRROR \
UV_PYTHON_INSTALL_MIRROR
} }
uv_venv() { uv_venv() {
echo echo
@ -115,7 +118,7 @@ venvs() {
"create") "create")
export UV_PYTHON_INSTALL_DIR="${venv}/cpypy" export UV_PYTHON_INSTALL_DIR="${venv}/cpypy"
echo "→ install python ${version}" echo "→ install python ${version}"
uv_python "${venv}" "${version}" uv_python "${version}"
echo "→ create venv ${version}" echo "→ create venv ${version}"
uv_venv "${venv}" "${version}" uv_venv "${venv}" "${version}"
unset UV_PYTHON_INSTALL_DIR unset UV_PYTHON_INSTALL_DIR