wip/python
This commit is contained in:
parent
f9b39eeb15
commit
bd78de879a
1 changed files with 10 additions and 2 deletions
12
cd.sh
12
cd.sh
|
@ -198,9 +198,9 @@ Dir::Etc::SourceParts \"\";
|
|||
esac
|
||||
cd_split
|
||||
cd_echo "CD_URL_DEFAULT" "CD_URL_CHOSEN"
|
||||
# TODO python
|
||||
# python
|
||||
case "${CD_OS_ID}" in
|
||||
"${CD_OS_ALMA}")
|
||||
"${CD_OS_ALMA}"|"${CD_OS_ROCKY}")
|
||||
CD_PYTHON_COMMAND="python3.11"
|
||||
CD_PYTHON_PACKAGE="python3.11"
|
||||
CD_PYTHON_PACKAGES="/usr/lib64/python3.11/site-packages"
|
||||
|
@ -218,6 +218,14 @@ Dir::Etc::SourceParts \"\";
|
|||
CD_PYTHON_PACKAGE="python3"
|
||||
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
|
||||
;;
|
||||
"${CD_OS_UBUNTU}")
|
||||
case "${CD_OS_VERSION}" in
|
||||
"noble") CD_PYTHON_COMMAND="python3.12" ;;
|
||||
"mantic") CD_PYTHON_COMMAND="python3.11" ;;
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue