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


Groups > linux.debian.user > #175730

Re: Python Alternatives?

From Michael Milliman <michael.e.milliman@gmail.com>
Newsgroups linux.debian.user
Subject Re: Python Alternatives?
Date 2016-12-15 21:50 +0100
Message-ID <sOL8t-20y-5@gated-at.bofh.it> (permalink)
References <sO4wx-7mX-9@gated-at.bofh.it> <sO4Zz-7wl-13@gated-at.bofh.it> <sOCRz-5ig-1@gated-at.bofh.it> <sOGBQ-7B0-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


It sounds like the status of the /usr/bin/python link is really a mess 
with some people/distros doing one thing and others doing something 
else.  I imagine it will settle down eventually to a commonly accepted 
standard.  For now, though, it looks like using either a python2 or 
python3 shebang, as necessary, is the way to be compatible with most 
systems, not using a python shebang at all, as you don't know where that 
is really pointing for sure.


On 12/15/2016 09:51 AM, Kushal Kumaran wrote:
> Jonathan Dowland <jmtd@debian.org> writes:
>
>> On Wed, Dec 14, 2016 at 10:39:27AM +1100, Ben Finney wrote:
>>> That would violate Debian Python policy. You are free to do it on your
>>> own system, but it will likely break many Python packages on Debian, and
>>> you get to keep all the pieces :-)
>>  From what I recall the upstream Python community does not suggest calling
>> Python 3 'python' either.
> https://www.python.org/dev/peps/pep-0394/ recommends that the python
> name be used for python2, but notes that some distributions have
> switched it to point to python3.  So the suggestion is that python2-only
> scripts should have an explicit python2 shebang, and only scripts that
> support both should have the python shebang.
>
> --
> regards,
> kushal
>

-- 
73's de Mike, WB5VQX

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Python Alternatives? Michael Milliman <michael.e.milliman@gmail.com> - 2016-12-14 00:20 +0100
  Re: Python Alternatives? deloptes <deloptes@gmail.com> - 2016-12-14 00:30 +0100
  Re: Python Alternatives? Ben Finney <bignose@debian.org> - 2016-12-14 00:50 +0100
    Re: Python Alternatives? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-12-14 05:50 +0100
      Re: Python Alternatives? Ben Finney <bignose@debian.org> - 2016-12-14 08:20 +0100
    Re: Python Alternatives? Jonathan Dowland <jmtd@debian.org> - 2016-12-15 13:00 +0100
      Re: Python Alternatives? Kushal Kumaran <kushal@locationd.net> - 2016-12-15 17:00 +0100
        Re: Python Alternatives? Michael Milliman <michael.e.milliman@gmail.com> - 2016-12-15 21:50 +0100

csiph-web