diff --git a/cd.sh b/cd.sh index d8e02dc..fc11d76 100644 --- a/cd.sh +++ b/cd.sh @@ -162,43 +162,51 @@ Dir::Etc::SourceParts \"\"; cd_echo "CD_CMD_CLEAN" "CD_CMD_INSTALL" "CD_CMD_UPDATE" "CD_CMD_UPGRADE" cd_split cd_echo "CD_PM_CONF_PATH" "CD_PM_HTTPS_PATH" + # TODO python + case "${CD_OS_ID}" in + "${CD_OS_ALMA}") + CD_PYTHON_COMMAND="python3.11" + CD_PYTHON_PACKAGE="python3.11" + CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages" + ;; + "${CD_OS_ALPINE}") + CD_PYTHON_COMMAND="python3.11" + CD_PYTHON_PACKAGE="python3" + CD_PYTHON_PACKAGES="/usr/lib/python3.11/site-packages" + ;; + "${CD_OS_DEBIAN}") + case "${CD_OS_VERSION}" in + "bookworm") CD_PYTHON_COMMAND="python3.11" ;; + "bullseye") CD_PYTHON_COMMAND="python3.9" ;; + 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" # TODO case "${CD_OS_ID}" in "${CD_OS_ALMA}") CD_OS_REPO="${CD_DEFAULT_REPO_ALMA}" [ "${CD_REPO_ALMA}" ] && CD_OS_REPO="${CD_REPO_ALMA}" CD_PKG_PKG="" - CD_PYTHON_COMMAND="python3.11" - CD_PYTHON_PACKAGE="python3.11" - CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages" ;; "${CD_OS_ALPINE}") CD_OS_REPO="${CD_DEFAULT_REPO_ALPINE}" [ "${CD_REPO_ALPINE}" ] && CD_OS_REPO="${CD_REPO_ALPINE}" CD_PKG_PKG="" - CD_PYTHON_COMMAND="python3.11" - CD_PYTHON_PACKAGE="python3" - CD_PYTHON_PACKAGES="/usr/lib/python3.11/site-packages" ;; "${CD_OS_DEBIAN}") export DEBIAN_FRONTEND="noninteractive" # CD_OS_REPO="${CD_DEFAULT_REPO_DEBIAN}" [ "${CD_REPO_DEBIAN}" ] && CD_OS_REPO="${CD_REPO_DEBIAN}" - case "${CD_OS_VERSION}" in - "bookworm") CD_PYTHON_COMMAND="python3.11" ;; - "bullseye") CD_PYTHON_COMMAND="python3.9" ;; - *) cd_error_os "CD_OS_VERSION" ;; - esac CD_PKG_PKG="apt-utils" - CD_PYTHON_PACKAGE="python3" - CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages" ;; esac cd_split cd_echo "CD_PKG_PKG" - cd_split - cd_echo "CD_PYTHON_COMMAND" "CD_PYTHON_PACKAGE" "CD_PYTHON_PACKAGES" # variables [ "${CD_CA_1}" ] && CD_CA=true # continuous integration platform