no alternatives for python

Bug #1886098 reported by Bump
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned
python3-defaults (Debian)
Won't Fix
Unknown

Bug Description

Some scripts just call python when they mean python3 or python2. I don't know if it's a good practice to symlink python to python3/python2 or you are expected to explicitly call python3/2 when you want it.

update-alternatives --list python
update-alternatives: error: no alternatives for python

ls /usr/bin/python?
/usr/bin/python2 /usr/bin/python3

Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

In Ubuntu, all python packages use explicit python3 or python2
interpreter and do not use unversioned /usr/bin/python at all.
Some third-party code may still be python2 based, yet may use
/usr/bin/python.

https://launchpad.net/ubuntu/+source/what-is-python
https://launchpad.net/ubuntu/+source/what-is-python/4

affects: python (Ubuntu) → ubuntu
Changed in ubuntu:
status: New → Invalid
Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

python-is-python3 - symlinks /usr/bin/python to python3
python-is-python2 - symlinks /usr/bin/python to the DEPRECATED python2

Revision history for this message
Bump (bump55) wrote :

I don't think it's a good idea to mess with system defaults. Plus if you call the ./script directly it should have already a shebang line with python version.
So python is just for backward compatibility with python2 scripts.

Changed in python3-defaults (Debian):
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.