alias
All checks were successful
/ job (push) Successful in 11m55s

This commit is contained in:
Marc Beninca 2024-08-26 18:31:23 +02:00
parent 336bee85e2
commit 26af1a60ff
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -678,8 +678,11 @@ Acquire::https::Verify-Peer False;
esac esac
spcd_split spcd_split
spcd_os_printenv "SPCD_URL_DEFAULT" "SPCD_URL_CHOSEN" spcd_os_printenv "SPCD_URL_DEFAULT" "SPCD_URL_CHOSEN"
# set python alias, command & package # set python alias
SPCD_PYTHON_ALIAS="python" SPCD_PYTHON_ALIAS="python3"
spcd_split
spcd_os_printenv "SPCD_PYTHON_ALIAS"
# set python command & package
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") "${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}")
SPCD_PYTHON_COMMAND="python3.12" SPCD_PYTHON_COMMAND="python3.12"
@ -733,8 +736,7 @@ Acquire::https::Verify-Peer False;
*) ;; *) ;;
esac esac
spcd_split spcd_split
spcd_os_printenv "SPCD_PYTHON_ALIAS" \ spcd_os_printenv "SPCD_PYTHON_COMMAND" "SPCD_PYTHON_PACKAGE"
"SPCD_PYTHON_COMMAND" "SPCD_PYTHON_PACKAGE"
# set python packages # set python packages
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_FEDORA}" | "${SPCD_OS_ROCKY}" | \ "${SPCD_OS_ALMA}" | "${SPCD_OS_FEDORA}" | "${SPCD_OS_ROCKY}" | \
@ -745,7 +747,7 @@ Acquire::https::Verify-Peer False;
SPCD_PYTHON_PACKAGES="/usr/lib/${SPCD_PYTHON_COMMAND}/site-packages" SPCD_PYTHON_PACKAGES="/usr/lib/${SPCD_PYTHON_COMMAND}/site-packages"
;; ;;
"${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}") "${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}")
SPCD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages" SPCD_PYTHON_PACKAGES="/usr/lib/${SPCD_PYTHON_ALIAS}/dist-packages"
;; ;;
*) ;; *) ;;
esac esac