venvs/create
This commit is contained in:
parent
d4b8d62d41
commit
1217bf8115
1 changed files with 9 additions and 11 deletions
20
re.sh
20
re.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue