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 for version in "${@}"; do
venv="${root}/${version}" venv="${root}/${version}"
case "${action}" in 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 esac
done done
@ -123,17 +131,7 @@ list_venv "${os}"
pip_install --upgrade "pip" pip_install --upgrade "pip"
pip_install "uv" pip_install "uv"
list_venv "${os}" list_venv "${os}"
venvs create
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
deactivate deactivate
for version in "${@}"; do for version in "${@}"; do