Compare commits

...

2 commits

Author SHA1 Message Date
6ffffda704
python3 2024-09-29 18:52:05 +02:00
1b466b38aa
os 2024-09-29 18:49:50 +02:00

View file

@ -41,14 +41,16 @@ tmp="${root}/tmp"
rm --force --recursive \
~/.cache/pip "${root}"
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}"
for version in "os" "3.12" "3.11" "3.10"; do
if [ "${version}" != "os" ]; then
export VIRTUAL_ENV="/prj/venv/${version}"
export OLD_PATH="${PATH}"
export PATH="${VIRTUAL_ENV}/bin:${PATH}"
fi
sub="${root}/${version}"
python -m pip \
python3 -m pip \
download \
--dest "${sub}" \
"${@}"
@ -92,8 +94,10 @@ for version in "3.12" "3.11" "3.10"; do
mv -i "${sub}/${file_name}-"* "${simple}/"
done
export PATH="${OLD_PATH}"
unset OLD_PATH VIRTUAL_ENV
if [ "${version}" != "os" ]; then
export PATH="${OLD_PATH}"
unset OLD_PATH VIRTUAL_ENV
fi
done
rm --force --recursive "${tmp}"