From 37af0dbe2d9dff73c7b51ace6d469cfa7ce67bc2 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 29 Sep 2024 17:52:47 +0200 Subject: [PATCH] versions --- py.pypi.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/py.pypi.sh b/py.pypi.sh index 4953d50..561e16a 100755 --- a/py.pypi.sh +++ b/py.pypi.sh @@ -41,13 +41,19 @@ tmp="${root}/tmp" rm --force --recursive \ ~/.cache/pip "${root}" -python3 -m pip \ +for version in "3.12" "3.11" "3.10"; do + export VIRTUAL_ENV="/prj/venv/${version}" + export OLD_PATH="${PATH}" + export PATH="${VIRTUAL_ENV}/bin:${PATH}" + +python -m pip \ download \ --dest "${root}" \ "${@}" prefix="Name: " for wheel in "${root}/"*; do + rm --force --recursive "${tmp}" echo echo "${wheel}" file="$(basename "${wheel}")" @@ -84,4 +90,8 @@ for wheel in "${root}/"*; do mv -i "${root}/${file_name}-"* "${sub}/" done + export PATH="${OLD_PATH}" + unset OLD_PATH VIRTUAL_ENV +done + rm --force --recursive "${tmp}"