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}"