Compare commits
5 commits
771878775e
...
14aa8def2e
Author | SHA1 | Date | |
---|---|---|---|
14aa8def2e | |||
37277d1dc2 | |||
c271c7de58 | |||
719aa2f9fd | |||
37af0dbe2d |
1 changed files with 52 additions and 40 deletions
26
py.pypi.sh
26
py.pypi.sh
|
@ -41,13 +41,21 @@ tmp="${root}/tmp"
|
||||||
rm --force --recursive \
|
rm --force --recursive \
|
||||||
~/.cache/pip "${root}"
|
~/.cache/pip "${root}"
|
||||||
|
|
||||||
python3 -m pip \
|
for version in "3.10" "3.11" "3.12"; do
|
||||||
|
export VIRTUAL_ENV="/prj/venv/${version}"
|
||||||
|
export OLD_PATH="${PATH}"
|
||||||
|
export PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
||||||
|
|
||||||
|
sub="${root}/${version}"
|
||||||
|
|
||||||
|
python -m pip \
|
||||||
download \
|
download \
|
||||||
--dest "${root}" \
|
--dest "${sub}" \
|
||||||
"${@}"
|
"${@}"
|
||||||
|
|
||||||
prefix="Name: "
|
prefix="Name: "
|
||||||
for wheel in "${root}/"*; do
|
for wheel in "${sub}/"*; do
|
||||||
|
rm --force --recursive "${tmp}"
|
||||||
echo
|
echo
|
||||||
echo "${wheel}"
|
echo "${wheel}"
|
||||||
file="$(basename "${wheel}")"
|
file="$(basename "${wheel}")"
|
||||||
|
@ -79,9 +87,13 @@ for wheel in "${root}/"*; do
|
||||||
name="$(echo "${name}" | tr "_" "-")"
|
name="$(echo "${name}" | tr "_" "-")"
|
||||||
name="$(echo "${name}" | tr -d "\r")"
|
name="$(echo "${name}" | tr -d "\r")"
|
||||||
echo "${name}"
|
echo "${name}"
|
||||||
sub="${root}/simple/${name}"
|
simple="${sub}/simple/${name}"
|
||||||
mkdir --parents "${sub}"
|
mkdir --parents "${simple}"
|
||||||
mv -i "${root}/${file_name}-"* "${sub}/"
|
mv -i "${sub}/${file_name}-"* "${simple}/"
|
||||||
|
done
|
||||||
|
|
||||||
|
export PATH="${OLD_PATH}"
|
||||||
|
unset OLD_PATH VIRTUAL_ENV
|
||||||
done
|
done
|
||||||
|
|
||||||
rm --force --recursive "${tmp}"
|
rm --force --recursive "${tmp}"
|
||||||
|
|
Loading…
Reference in a new issue