Compare commits
2 commits
2f2ba172d8
...
5b1656b7aa
Author | SHA1 | Date | |
---|---|---|---|
5b1656b7aa | |||
c455f942b9 |
1 changed files with 6 additions and 3 deletions
|
@ -40,7 +40,7 @@ tmp="${root}/tmp"
|
||||||
|
|
||||||
rm --force --recursive "${root}"
|
rm --force --recursive "${root}"
|
||||||
|
|
||||||
for version in "os" "3.12" "3.11" "3.10"; do
|
for version in "os" "3.12" "3.11" "3.10" "pypy3.10"; do
|
||||||
export VIRTUAL_ENV="/prj/venv/${version}"
|
export VIRTUAL_ENV="/prj/venv/${version}"
|
||||||
export OLD_PATH="${PATH}"
|
export OLD_PATH="${PATH}"
|
||||||
export PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
export PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
||||||
|
@ -73,11 +73,14 @@ for version in "os" "3.12" "3.11" "3.10"; do
|
||||||
case "${file}" in
|
case "${file}" in
|
||||||
*.tar.gz)
|
*.tar.gz)
|
||||||
meta_data="${file_name}-${file_version}/${file_name}.egg-info/PKG-INFO"
|
meta_data="${file_name}-${file_version}/${file_name}.egg-info/PKG-INFO"
|
||||||
tar xf "${wheel}" -C "${tmp}" "${meta_data}"
|
if ! tar xf "${wheel}" -C "${tmp}" "${meta_data}"; then
|
||||||
|
meta_data="${file_name}-${file_version}/PKG-INFO"
|
||||||
|
tar xf "${wheel}" -C "${tmp}" "${meta_data}" || exit
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*.whl)
|
*.whl)
|
||||||
meta_data="${file_name}-${file_version}.dist-info/METADATA"
|
meta_data="${file_name}-${file_version}.dist-info/METADATA"
|
||||||
unzip "${wheel}" "${meta_data}" -d "${tmp}"
|
unzip "${wheel}" "${meta_data}" -d "${tmp}" || exit
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
name="$(grep "${prefix}" "${tmp}/${meta_data}" | sed "s|${prefix}||")"
|
name="$(grep "${prefix}" "${tmp}/${meta_data}" | sed "s|${prefix}||")"
|
||||||
|
|
Loading…
Reference in a new issue