python/command,packages

This commit is contained in:
Marc Beninca 2024-04-29 17:37:15 +02:00
parent 17ce94a63f
commit 461230fe16
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

14
cd.sh
View file

@ -34,26 +34,30 @@ cd_main () {
cd_set_environment () {
cd_step "Set environment"
#
CD_DNS_FILE="/etc/resolv.conf"
CD_GIT_PACKAGE="git"
CD_PYTHON_COMMAND="python3"
#
case "${CD_OS_NAME}" in
"debian")
CD_PYTHON_COMMAND="python3"
CD_PYTHON_PACKAGE="python3"
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
case "${CD_OS_VERSION}" in
"bookworm") echo "TODO" ;;
*) cd_error_os "CD_OS_VERSION=" ;;
*) cd_error_os "CD_OS_VERSION" ;;
esac
;;
"alma")
case "${CD_OS_VERSION}" in
"8") CD_PYTHON_PACKAGE="python3.11" ;;
*) cd_error_os "CD_OS_VERSION=" ;;
"8")
CD_PYTHON_PACKAGE="python3.11"
CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages"
;;
*) cd_error_os "CD_OS_VERSION" ;;
esac
;;
*) cd_error_os "CD_OS_NAME=" ;;
*) cd_error_os "CD_OS_NAME" ;;
esac
# ci / github
if [ "${GITHUB_ACTIONS}" ] ; then