wip/python

This commit is contained in:
Marc Beninca 2024-05-04 20:35:29 +02:00
parent f9b39eeb15
commit bd78de879a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

12
cd.sh
View file

@ -198,9 +198,9 @@ Dir::Etc::SourceParts \"\";
esac esac
cd_split cd_split
cd_echo "CD_URL_DEFAULT" "CD_URL_CHOSEN" cd_echo "CD_URL_DEFAULT" "CD_URL_CHOSEN"
# TODO python # python
case "${CD_OS_ID}" in case "${CD_OS_ID}" in
"${CD_OS_ALMA}") "${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_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages"
@ -218,6 +218,14 @@ Dir::Etc::SourceParts \"\";
CD_PYTHON_PACKAGE="python3" CD_PYTHON_PACKAGE="python3"
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages" 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 esac
cd_split cd_split
cd_echo "CD_PYTHON_COMMAND" "CD_PYTHON_PACKAGE" "CD_PYTHON_PACKAGES" cd_echo "CD_PYTHON_COMMAND" "CD_PYTHON_PACKAGE" "CD_PYTHON_PACKAGES"