dir/py,venv

This commit is contained in:
Marc Beninca 2024-09-29 13:42:43 +02:00
parent 9e8b139a81
commit 17f8310bfb
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

9
re.sh
View file

@ -67,12 +67,9 @@ set \
}
uv_python() {
echo
export UV_PYTHON_INSTALL_DIR="${1}/cpypy"
export UV_PYTHON_INSTALL_MIRROR="${url}/cpypy"
uv python install "${2}"
unset \
UV_PYTHON_INSTALL_DIR \
UV_PYTHON_INSTALL_MIRROR
unset UV_PYTHON_INSTALL_MIRROR
}
uv_venv() {
echo
@ -100,8 +97,12 @@ set \
for version in "${@}"; do
py="${root}/${version}"
remove "${py}"
export UV_PYTHON_INSTALL_DIR="${1}/cpypy"
echo "→ install python ${version}"
uv_python "${py}" "${version}"
echo "→ create venv ${version}"
uv_venv "${py}" "${version}"
unset UV_PYTHON_INSTALL_DIR
done
deactivate