pypackages

This commit is contained in:
Marc Beninca 2024-05-06 11:45:21 +02:00
parent 61093c5710
commit 79939a09e6
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

15
cd.sh
View file

@ -250,17 +250,14 @@ Dir::Etc::SourceParts \"\";
"${CD_OS_ALMA}"|"${CD_OS_ROCKY}") "${CD_OS_ALMA}"|"${CD_OS_ROCKY}")
CD_PYTHON_COMMAND="python3.11" CD_PYTHON_COMMAND="python3.11"
CD_PYTHON_PACKAGE="python3.11" CD_PYTHON_PACKAGE="python3.11"
CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages"
;; ;;
"${CD_OS_ALPINE}") "${CD_OS_ALPINE}")
CD_PYTHON_COMMAND="python3.11" CD_PYTHON_COMMAND="python3.11"
CD_PYTHON_PACKAGE="python3" CD_PYTHON_PACKAGE="python3"
CD_PYTHON_PACKAGES="/usr/lib/python3.11/site-packages"
;; ;;
"${CD_OS_ARCH}") "${CD_OS_ARCH}")
CD_PYTHON_COMMAND="python3.12" CD_PYTHON_COMMAND="python3.12"
CD_PYTHON_PACKAGE="python" CD_PYTHON_PACKAGE="python"
CD_PYTHON_PACKAGES="/usr/lib/python3.12/site-packages"
;; ;;
"${CD_OS_DEBIAN}") "${CD_OS_DEBIAN}")
case "${CD_OS_VERSION}" in case "${CD_OS_VERSION}" in
@ -268,12 +265,10 @@ Dir::Etc::SourceParts \"\";
"bullseye") CD_PYTHON_COMMAND="python3.9" ;; "bullseye") CD_PYTHON_COMMAND="python3.9" ;;
esac esac
CD_PYTHON_PACKAGE="python3" CD_PYTHON_PACKAGE="python3"
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
;; ;;
"${CD_OS_FEDORA}") "${CD_OS_FEDORA}")
CD_PYTHON_COMMAND="python3.12" CD_PYTHON_COMMAND="python3.12"
CD_PYTHON_PACKAGE="python3" CD_PYTHON_PACKAGE="python3"
CD_PYTHON_PACKAGES="/usr/lib64/python3.12/site-packages"
;; ;;
"${CD_OS_UBUNTU}") "${CD_OS_UBUNTU}")
case "${CD_OS_VERSION}" in case "${CD_OS_VERSION}" in
@ -281,6 +276,16 @@ Dir::Etc::SourceParts \"\";
"mantic") CD_PYTHON_COMMAND="python3.11" ;; "mantic") CD_PYTHON_COMMAND="python3.11" ;;
esac esac
CD_PYTHON_PACKAGE="python3" CD_PYTHON_PACKAGE="python3"
;;
esac
case "${CD_OS_ID}" in
"${CD_OS_ALMA}"|"${CD_OS_FEDORA}"|"${CD_OS_ROCKY}")
CD_PYTHON_PACKAGES="/usr/lib64/${CD_PYTHON_COMMAND}/site-packages"
;;
"${CD_OS_ALPINE}"|"${CD_OS_ARCH}")
CD_PYTHON_PACKAGES="/usr/lib/${CD_PYTHON_COMMAND}/site-packages"
;;
"${CD_OS_DEBIAN}"|"${CD_OS_UBUNTU}")
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages" CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
;; ;;
esac esac