Compare commits
2 commits
37277d1dc2
...
6ffffda704
Author | SHA1 | Date | |
---|---|---|---|
6ffffda704 | |||
1b466b38aa |
1 changed files with 11 additions and 7 deletions
18
py.pypi.sh
18
py.pypi.sh
|
@ -41,14 +41,16 @@ tmp="${root}/tmp"
|
||||||
rm --force --recursive \
|
rm --force --recursive \
|
||||||
~/.cache/pip "${root}"
|
~/.cache/pip "${root}"
|
||||||
|
|
||||||
for version in "3.12" "3.11" "3.10"; do
|
for version in "os" "3.12" "3.11" "3.10"; do
|
||||||
export VIRTUAL_ENV="/prj/venv/${version}"
|
if [ "${version}" != "os" ]; then
|
||||||
export OLD_PATH="${PATH}"
|
export VIRTUAL_ENV="/prj/venv/${version}"
|
||||||
export PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
export OLD_PATH="${PATH}"
|
||||||
|
export PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
sub="${root}/${version}"
|
sub="${root}/${version}"
|
||||||
|
|
||||||
python -m pip \
|
python3 -m pip \
|
||||||
download \
|
download \
|
||||||
--dest "${sub}" \
|
--dest "${sub}" \
|
||||||
"${@}"
|
"${@}"
|
||||||
|
@ -92,8 +94,10 @@ for version in "3.12" "3.11" "3.10"; do
|
||||||
mv -i "${sub}/${file_name}-"* "${simple}/"
|
mv -i "${sub}/${file_name}-"* "${simple}/"
|
||||||
done
|
done
|
||||||
|
|
||||||
export PATH="${OLD_PATH}"
|
if [ "${version}" != "os" ]; then
|
||||||
unset OLD_PATH VIRTUAL_ENV
|
export PATH="${OLD_PATH}"
|
||||||
|
unset OLD_PATH VIRTUAL_ENV
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
rm --force --recursive "${tmp}"
|
rm --force --recursive "${tmp}"
|
||||||
|
|
Loading…
Reference in a new issue