This commit is contained in:
Marc Beninca 2024-09-29 17:52:47 +02:00
parent 771878775e
commit 37af0dbe2d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

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