diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index d320d31..0e1ce38 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -678,8 +678,11 @@ Acquire::https::Verify-Peer False; esac spcd_split spcd_os_printenv "SPCD_URL_DEFAULT" "SPCD_URL_CHOSEN" - # set python alias, command & package - SPCD_PYTHON_ALIAS="python" + # set python alias + SPCD_PYTHON_ALIAS="python3" + spcd_split + spcd_os_printenv "SPCD_PYTHON_ALIAS" + # set python command & package case "${SPCD_OS_ID}" in "${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") SPCD_PYTHON_COMMAND="python3.12" @@ -733,8 +736,7 @@ Acquire::https::Verify-Peer False; *) ;; esac spcd_split - spcd_os_printenv "SPCD_PYTHON_ALIAS" \ - "SPCD_PYTHON_COMMAND" "SPCD_PYTHON_PACKAGE" + spcd_os_printenv "SPCD_PYTHON_COMMAND" "SPCD_PYTHON_PACKAGE" # set python packages case "${SPCD_OS_ID}" in "${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_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}") - SPCD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages" + SPCD_PYTHON_PACKAGES="/usr/lib/${SPCD_PYTHON_ALIAS}/dist-packages" ;; *) ;; esac