Compare commits
No commits in common. "6ffffda704d4973e6af2cc92c159d9dcc2063958" and "37277d1dc27be3cbd1ee54b9b0802ac0d3d85ada" have entirely different histories.
6ffffda704
...
37277d1dc2
1 changed files with 7 additions and 11 deletions
18
py.pypi.sh
18
py.pypi.sh
|
@ -41,16 +41,14 @@ tmp="${root}/tmp"
|
|||
rm --force --recursive \
|
||||
~/.cache/pip "${root}"
|
||||
|
||||
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
|
||||
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}"
|
||||
|
||||
sub="${root}/${version}"
|
||||
|
||||
python3 -m pip \
|
||||
python -m pip \
|
||||
download \
|
||||
--dest "${sub}" \
|
||||
"${@}"
|
||||
|
@ -94,10 +92,8 @@ for version in "os" "3.12" "3.11" "3.10"; do
|
|||
mv -i "${sub}/${file_name}-"* "${simple}/"
|
||||
done
|
||||
|
||||
if [ "${version}" != "os" ]; then
|
||||
export PATH="${OLD_PATH}"
|
||||
unset OLD_PATH VIRTUAL_ENV
|
||||
fi
|
||||
export PATH="${OLD_PATH}"
|
||||
unset OLD_PATH VIRTUAL_ENV
|
||||
done
|
||||
|
||||
rm --force --recursive "${tmp}"
|
||||
|
|
Loading…
Reference in a new issue