Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8958

Re: /usr/bin/python2 shebangs

From Scott Kitterman <debian@kitterman.com>
Newsgroups linux.debian.maint.python
Subject Re: /usr/bin/python2 shebangs
Date 2016-11-01 16:40 +0100
Message-ID <syJkm-232-31@gated-at.bofh.it> (permalink)
References <syIeB-1oI-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On November 1, 2016 10:28:01 AM EDT, Barry Warsaw <barry@debian.org> wrote:
>Over in #834193, a user is asking for a /usr/bin/pip2 to mirror
>/usr/bin/pip
>because some uses cases apparently prefer pip2 over pip.  That seems
>like a
>reasonable request on the face of it, and easy to support.
>
>However, I thought, well why not shebang pip2 to /usr/bin/python2
>because 1)
>it would parallel the script name; 2) I do think it would be in our
>best long
>term interest to start shebanging system scripts explicitly with
>python3 or
>python2 as appropriate.  Yes, I know that we don't intend to make
>/usr/bin/python be Python 3 any time soon, but maybe someday we'll
>change our
>minds and PEP 394 will embrace that strategy across Linux distros.
>
>In any case, it produces a mild lintian complaint:
>
>E: python-pip: python-script-but-no-python-dep usr/bin/pip2
>
>Of course the /usr/bin/python shebanged /usr/bin/pip doesn't produce
>that
>warning, and the package's Depends properly has ${python:Depends}.  I
>think
>lintian is wrong, but I'd like to hear any other opinions.

I don't think /usr/bin/python should ever point to a python3 version.  It should be dropped when python2.7 is removed.  I think the existence of /usr/bin/python2 is a limited to a work around for a specific distros insanity.  There's no need to encourage it's use in Debian as that particular insanity hasn't and won't (as long as I'm a python*-defaults co-maintainer).

Scott K

P.S. But I think you already knew how I feel about it.  ;-)

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

/usr/bin/python2 shebangs Barry Warsaw <barry@debian.org> - 2016-11-01 15:30 +0100
  Re: /usr/bin/python2 shebangs Scott Kitterman <debian@kitterman.com> - 2016-11-01 16:40 +0100
    Re: /usr/bin/python2 shebangs Barry Warsaw <barry@debian.org> - 2016-11-01 22:20 +0100
      Re: /usr/bin/python2 shebangs Scott Kitterman <debian@kitterman.com> - 2016-11-01 23:10 +0100
        Re: /usr/bin/python2 shebangs Donald Stufft <donald@stufft.io> - 2016-11-02 01:50 +0100
          Re: /usr/bin/python2 shebangs Scott Kitterman <debian@kitterman.com> - 2016-11-02 02:10 +0100
          Python 4 and ‘python3’ (was:  /usr/bin/python2 shebangs) Ben Finney <bignose@debian.org> - 2016-11-02 04:00 +0100
            Re: Python 4 and ‘python3’ (was:  /usr/bin/python2 shebangs) Barry Warsaw <barry@debian.org> - 2016-11-02 15:10 +0100
              Re: Python 4 and ‘python3’ Ben Finney <bignose@debian.org> - 2016-11-02 23:30 +0100
                Re: Python 4 and ‘python3’ Barry Warsaw <barry@debian.org> - 2016-11-02 23:50 +0100
                Re: Python 4 and ‘python3’ Ben Finney <bignose@debian.org> - 2016-11-03 00:50 +0100
        Re: /usr/bin/python2 shebangs Thomas Goirand <zigo@debian.org> - 2016-11-07 11:50 +0100
          Re: /usr/bin/python2 shebangs Barry Warsaw <barry@debian.org> - 2016-11-07 16:10 +0100
            Re: /usr/bin/python2 shebangs Scott Kitterman <debian@kitterman.com> - 2016-11-07 16:30 +0100
              Re: /usr/bin/python2 shebangs Thomas Goirand <zigo@debian.org> - 2016-11-09 17:10 +0100
                Re: /usr/bin/python2 shebangs Paul Wise <pabs@debian.org> - 2016-11-10 03:40 +0100

csiph-web