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_set_environment () {
|
||||||
cd_step "Set environment"
|
cd_step "Set environment"
|
||||||
|
#
|
||||||
CD_DNS_FILE="/etc/resolv.conf"
|
CD_DNS_FILE="/etc/resolv.conf"
|
||||||
CD_GIT_PACKAGE="git"
|
CD_GIT_PACKAGE="git"
|
||||||
|
CD_PYTHON_COMMAND="python3"
|
||||||
#
|
#
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian")
|
"debian")
|
||||||
CD_PYTHON_COMMAND="python3"
|
|
||||||
CD_PYTHON_PACKAGE="python3"
|
CD_PYTHON_PACKAGE="python3"
|
||||||
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
|
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
|
||||||
case "${CD_OS_VERSION}" in
|
case "${CD_OS_VERSION}" in
|
||||||
"bookworm") echo "TODO" ;;
|
"bookworm") echo "TODO" ;;
|
||||||
*) cd_error_os "CD_OS_VERSION=" ;;
|
*) cd_error_os "CD_OS_VERSION" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
"alma")
|
"alma")
|
||||||
case "${CD_OS_VERSION}" in
|
case "${CD_OS_VERSION}" in
|
||||||
"8") CD_PYTHON_PACKAGE="python3.11" ;;
|
"8")
|
||||||
*) cd_error_os "CD_OS_VERSION=" ;;
|
CD_PYTHON_PACKAGE="python3.11"
|
||||||
|
CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages"
|
||||||
|
;;
|
||||||
|
*) cd_error_os "CD_OS_VERSION" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
*) cd_error_os "CD_OS_NAME=" ;;
|
*) cd_error_os "CD_OS_NAME" ;;
|
||||||
esac
|
esac
|
||||||
# ci / github
|
# ci / github
|
||||||
if [ "${GITHUB_ACTIONS}" ] ; then
|
if [ "${GITHUB_ACTIONS}" ] ; then
|
||||||
|
|
Loading…
Reference in a new issue