From 1b466b38aaa4be797873eebf9186bdbd4321e48e Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 29 Sep 2024 18:49:50 +0200 Subject: [PATCH] os --- py.pypi.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/py.pypi.sh b/py.pypi.sh index 76e3bd9..c4627ae 100755 --- a/py.pypi.sh +++ b/py.pypi.sh @@ -41,10 +41,12 @@ tmp="${root}/tmp" rm --force --recursive \ ~/.cache/pip "${root}" -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}" +for version in "os" "3.12" "3.11" "3.10"; do + if [ "${version}" != "os" ]; then + export VIRTUAL_ENV="/prj/venv/${version}" + export OLD_PATH="${PATH}" + export PATH="${VIRTUAL_ENV}/bin:${PATH}" + fi sub="${root}/${version}" @@ -92,8 +94,10 @@ for version in "3.12" "3.11" "3.10"; do mv -i "${sub}/${file_name}-"* "${simple}/" done - export PATH="${OLD_PATH}" - unset OLD_PATH VIRTUAL_ENV + if [ "${version}" != "os" ]; then + export PATH="${OLD_PATH}" + unset OLD_PATH VIRTUAL_ENV + fi done rm --force --recursive "${tmp}"