4 ms·
The default for Debian [0] and Ubuntu [1] is Python3. The `/usr/bin/python` symlink will be Python2 forever, since Python itself advises it. PEP 394[2]: > for
by qznc 10y ago
The default for Debian [0] and Ubuntu [1] is Python3. The `/usr/bin/python` symlink will be Python2 forever, since Python itself advises it. PEP 394[2]:
> for the time being, all distributions should ensure that python refers to the same target as python2.
[0] https://www.debian.org/doc/packaging-manuals/python-policy/ch-python3.html https://www.debian.org/doc/packaging-manuals/python-policy/c...
[1] https://blueprints.launchpad.net/ubuntu/+spec/core-1311-python3-roadmap https://blueprints.launchpad.net/ubuntu/+spec/core-1311-pyth...
[2] https://www.python.org/dev/peps/pep-0394/ https://www.python.org/dev/peps/pep-0394/
- deleted 10y ago[deleted]
- oneweekwonder 10y agoAm I incorrect in recalling that ArchLinux decided against this? edit: seems to be the case[0] [0]: https://wiki.archlinux.org/index.php/python#Python_2 https://wiki.archlinux.org/index.php/python#Python_2
- gsnedders 10y agoBefore upstream CPython had any defined policy on the python symlink.
- majewsky 10y agoYes, which is why it is a staple of PKGBUILDs for Python software to do sed -i s/python/python3/ /all/the/things
- qznc 10y agoRead the next line in PEP 394 ;) > however, end users should be aware that python refers to python3 on at least Arch Linux (that change is what prompted the creation of this PEP), so python should be used in the shebang line only for scripts that are source compatible with both Python 2 and 3.