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


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

Use Python3 where possible

From Matthias Klose <doko@debian.org>
Newsgroups linux.debian.maint.python
Subject Use Python3 where possible
Date 2016-03-15 11:30 +0100
Message-ID <rcUoG-If-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The recent update of pep8 to use Python3 by default, and the regressions 
mentioned in #807409 reminded me, that we probably should address the use of 
Python3 more pro-actively.

The pep8 binary package included the Python2 modules, plus the scripts, the 
python3-pep8 package only included the Python3 modules.  The recent upload added 
a python-pep8 package, and let the pep8 package depend on python3-pep8, breaking 
packages which use the module, but not the binary package.  I still think this 
way forward is the correct way to go (maybe adding some Breaks if these are 
known in advance).

There are probably more packages like these, which should be converted this way. 
  Maybe a popular candidate is sphinx, where almost always python-sphinx is used 
as a b-d instead of python3-sphinx.

I would like to come up with a recommendation that if a python module ships 
scripts, Python3 is used for these scripts, and the Python2 version of these 
scripts should be dropped (and python -m ...) should be used instead.  An 
alternative might be to use separate names for the scripts (e.g. ending with 2, 
or like in pillow one set without a suffix (for Python3), and one set with a .py 
suffix (Python2)).  The most conforming name for the scripts should always use 
Python3.

Having a lintian warning that a package still uses Python2 instead of Python3 
might help as well, however maybe it should start as an "information" instead of 
a warning.

Matthias

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


Thread

Use Python3 where possible Matthias Klose <doko@debian.org> - 2016-03-15 11:30 +0100
  Re: Use Python3 where possible Andrey Rahmatullin <wrar@debian.org> - 2016-03-15 12:30 +0100
  Re: Use Python3 where possible Barry Warsaw <barry@debian.org> - 2016-03-15 23:30 +0100
  Re: Use Python3 where possible Thomas Goirand <zigo@debian.org> - 2016-03-16 00:40 +0100

csiph-web