From 17f8310bfbdd68d8b134b24ed090ea1c0e2099fa Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 29 Sep 2024 13:42:43 +0200 Subject: [PATCH] dir/py,venv --- re.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/re.sh b/re.sh index d48176b..feaaab7 100755 --- a/re.sh +++ b/re.sh @@ -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