[Linux-SIG] Updating PEP 394 to recommend soft-linking python to python3 on newer distributions

Nick Coghlan ncoghlan at gmail.com
Wed Sep 26 06:16:55 EDT 2018


On Wed, 26 Sep 2018 at 01:56, Matthias Klose <doko at ubuntu.com> wrote:
> On 24.09.2018 16:33, Jeremy Stanley wrote:
> > PEP 394 already allows bin/python in a Python 3.x virtual
> > environment to invoke python3. Distribution packaging similarly
> > works around these issues by patching shebang lines to refer to an
> > explicit major interpreter version. This does leave installing
> > sdists/wheels into the global system context as a broken use case,
> > but it's become increasingly popular within the Python packaging
> > community to declare that particular case dangerous and unsupported:
> >
> >     https://github.com/pypa/pip/issues/4805#issuecomment-381404626
>
> pip still unfortunately allows you to install and remove dpkg/rpm based
> installations, and with the pypi prominent suggestion to use pip install
> everywhere, that probably doesn't get better.

It should if system deb packages were to consistently populate the
INSTALLER file with a value other than pip:

* https://github.com/pypa/pip/issues/5346 (disables the pip upgrade message)
* https://github.com/pypa/pip/issues/5605 (figure out a way to tell
pip which INSTALLER files to leave alone)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Linux-sig mailing list