From bd78de879a2f697fd4b51174ebd7effa92a04327 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 4 May 2024 20:35:29 +0200 Subject: [PATCH] wip/python --- cd.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/cd.sh b/cd.sh index 82b9beb..fd72456 100644 --- a/cd.sh +++ b/cd.sh @@ -198,9 +198,9 @@ Dir::Etc::SourceParts \"\"; esac cd_split cd_echo "CD_URL_DEFAULT" "CD_URL_CHOSEN" - # TODO python + # python case "${CD_OS_ID}" in - "${CD_OS_ALMA}") + "${CD_OS_ALMA}"|"${CD_OS_ROCKY}") CD_PYTHON_COMMAND="python3.11" CD_PYTHON_PACKAGE="python3.11" CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages" @@ -218,6 +218,14 @@ Dir::Etc::SourceParts \"\"; CD_PYTHON_PACKAGE="python3" CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages" ;; + "${CD_OS_UBUNTU}") + case "${CD_OS_VERSION}" in + "noble") CD_PYTHON_COMMAND="python3.12" ;; + "mantic") CD_PYTHON_COMMAND="python3.11" ;; + esac + CD_PYTHON_PACKAGE="python3" + CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages" + ;; esac cd_split cd_echo "CD_PYTHON_COMMAND" "CD_PYTHON_PACKAGE" "CD_PYTHON_PACKAGES"