python/command,packages
This commit is contained in:
parent
17ce94a63f
commit
461230fe16
1 changed files with 9 additions and 5 deletions
14
cd.sh
14
cd.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue