versions
This commit is contained in:
parent
771878775e
commit
37af0dbe2d
1 changed files with 11 additions and 1 deletions
12
py.pypi.sh
12
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}"
|
||||
|
|
Loading…
Reference in a new issue