[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /usr/bin/python2 shebangs



On Tuesday, November 01, 2016 05:14:21 PM Barry Warsaw wrote:
> On Nov 01, 2016, at 11:34 AM, Scott Kitterman wrote:
> >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).
> >
> >P.S. But I think you already knew how I feel about it.  ;-)
> 
> Oh yes, I knew. :)
> 
> Okay, so you don't think we should ever shebang scripts to /usr/bin/python2.
> Maybe lintian should warn specifically against that then?
> 
> (I still think /usr/bin/python2 is the better long term path, but I don't
> feel strongly enough about it to advocate a formal transition.)
> 
> Cheers,
> -Barry

Given that we provide /usr/bin/python2 in all supported releases, I don't 
think it's use is actively harmful, but neither do I think should it be any 
kind of goal.

Even after python2.7 is removed from Debian, there will still be users who 
keep a local copy because they couldn't migrate things due to $REASONS.  Re-
using /usr/bin/python for a python3 version won't accomplish anything more 
than gratuitously break such setups.

While Debian has a technically proficient, capable user base that can work 
through all kinds of issues associated with local requirements, I don't think 
we should make it any harder than necessary.

Scott K


Reply to: