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}"