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


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

Re: -nspkg.pth and .pth files - should we get rid of them?

From Dimitri John Ledkov <dimitri.ledkov@surgut.co.uk>
Newsgroups linux.debian.maint.python
Subject Re: -nspkg.pth and .pth files - should we get rid of them?
Date 2015-07-20 14:40 +0200
Message-ID <pOiwq-1i3-3@gated-at.bofh.it> (permalink)
References (3 earlier) <pOej8-3Of-33@gated-at.bofh.it> <pOgXE-7pn-9@gated-at.bofh.it> <pOhgZ-81e-7@gated-at.bofh.it> <pOhTI-j2-3@gated-at.bofh.it> <pOi3o-K8-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 20 July 2015 at 13:04, Julien Cristau <julien.cristau@logilab.fr> wrote:
> On Mon, Jul 20, 2015 at 07:58:13 -0400, Barry Warsaw wrote:
>
>> On Jul 20, 2015, at 01:12 PM, Julien Cristau wrote:
>>
>> >Is that a serious question?  Why should debian-python, for no good
>> >reason, break things that work just fine?
>>
>> Because it doesn't really work well when you are supporting both Python 2 and
>> Python 3.  For example, if you have the 'foo' namespace with submodules 'bar'
>> and 'baz', you can't write a foo/__init__.py that supports old-style
>> namespaces for Python 2 and PEP 420 style namespaces for Python 3 because in
>> the latter *you can't have an __init__.py at all*.
>>
> That's exactly why Debian shouldn't mess with it.  If upstream is
> python3-only, they can remove __init__.py and go PEP420.  If not, they
> can use old-style namespaces on both python versions, and there's no
> reason for Debian to break that IMO.

Would it be fair to have a goal to only have PEP420 style namespaces
in python3 world?

And if there are upstreams that don't do that now, work with them to
achieve this and/or cpython/setuptools/distutils upstream.

-- 
Regards,

Dimitri.


-- 
To UNSUBSCRIBE, email to debian-python-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: https://lists.debian.org/CANBHLUjb4+KtnEDAKDTg=KBxNc-hjFfEU3sUekGQ9uZmXwpwbw@mail.gmail.com

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


Thread

-nspkg.pth and .pth files - should we get rid of them? Piotr Ożarowski <piotr@debian.org> - 2015-07-19 21:30 +0200
  Re: -nspkg.pth and .pth files - should we get rid of them? Dimitri John Ledkov <dimitri.ledkov@surgut.co.uk> - 2015-07-20 14:40 +0200
    Re: -nspkg.pth and .pth files - should we get rid of them? Barry Warsaw <barry@debian.org> - 2015-07-20 14:40 +0200

csiph-web