From 37277d1dc27be3cbd1ee54b9b0802ac0d3d85ada Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 29 Sep 2024 18:14:47 +0200 Subject: [PATCH] sub --- py.pypi.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/py.pypi.sh b/py.pypi.sh index 5e7c9a2..76e3bd9 100755 --- a/py.pypi.sh +++ b/py.pypi.sh @@ -46,13 +46,15 @@ for version in "3.12" "3.11" "3.10"; do export OLD_PATH="${PATH}" export PATH="${VIRTUAL_ENV}/bin:${PATH}" + sub="${root}/${version}" + python -m pip \ download \ - --dest "${root}" \ + --dest "${sub}" \ "${@}" prefix="Name: " - for wheel in "${root}/"*; do + for wheel in "${sub}/"*; do rm --force --recursive "${tmp}" echo echo "${wheel}" @@ -85,9 +87,9 @@ for version in "3.12" "3.11" "3.10"; do name="$(echo "${name}" | tr "_" "-")" name="$(echo "${name}" | tr -d "\r")" echo "${name}" - simple="${root}/simple/${name}" + simple="${sub}/simple/${name}" mkdir --parents "${simple}" - mv -i "${root}/${file_name}-"* "${simple}/" + mv -i "${sub}/${file_name}-"* "${simple}/" done export PATH="${OLD_PATH}"