venvs/create

This commit is contained in:
Marc Beninca 2024-09-29 17:16:17 +02:00
parent d4b8d62d41
commit 1217bf8115
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

20
re.sh
View file

@ -107,6 +107,14 @@ venvs() {
for version in "${@}"; do
venv="${root}/${version}"
case "${action}" in
"create")
export UV_PYTHON_INSTALL_DIR="${venv}/cpypy"
echo "→ install python ${version}"
uv_python "${venv}" "${version}"
echo "→ create venv ${version}"
uv_venv "${venv}" "${version}"
unset UV_PYTHON_INSTALL_DIR
;;
*) ;;
esac
done
@ -123,17 +131,7 @@ list_venv "${os}"
pip_install --upgrade "pip"
pip_install "uv"
list_venv "${os}"
for version in "${@}"; do
py="${root}/${version}"
export UV_PYTHON_INSTALL_DIR="${py}/cpypy"
echo "→ install python ${version}"
uv_python "${py}" "${version}"
echo "→ create venv ${version}"
uv_venv "${py}" "${version}"
unset UV_PYTHON_INSTALL_DIR
done
venvs create
deactivate
for version in "${@}"; do