-
Notifications
You must be signed in to change notification settings - Fork 559
Closed
Description
Hello,
When using the additionalVersions parameter of the python feature, would it be possible to register all the installed versions with update-alternatives?
It would make it easier to switch from one version to another one.
Alternative creation:
update-alternatives --install /usr/local/bin/python3 python3 /usr/local/python/3.12.7/bin/python3 1000 \
--slave /usr/local/bin/pip3 pip3 /usr/local/python/3.12.7/bin/pip3Alternative selection:
update-alternatives --set python3 /usr/local/python/3.12.7/bin/python3Ideally, it would be even better if the installation path was limited to 3.x or if a symlink 3.x was pointing to the corresponding version:
3.10 -> 3.10.15
3.10.15
3.11 -> 3.11.10
3.11.10
3.12 -> 3.12.7
3.12.7
current -> 3.12.7
This way, the user doesn't have to know which specific version has been installed, only needs to know which main version they wants:
update-alternatives --set python3 /usr/local/python/3.12/bin/python3or if alternatives are not installed:
rm /usr/local/python/current
ln -s 3.12 /usr/local/python/currentMetadata
Metadata
Assignees
Labels
No labels