dir/py,venv
This commit is contained in:
parent
9e8b139a81
commit
17f8310bfb
1 changed files with 5 additions and 4 deletions
9
re.sh
9
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
|
||||
|
|
Loading…
Reference in a new issue