Re: Debian and .pth files

2015-03-23 Thread Matthias Klose
On 03/23/2015 02:38 PM, Barry Warsaw wrote: > On Mar 23, 2015, at 11:25 AM, Piotr Ożarowski wrote: > >> I can change that and remove them in first dh-python's Stretch upload if >> there's an agreement to do that. > > +1. pth files are evil. If stuff breaks because of their removal, we'll have >

Re: Debian and .pth files

2015-03-23 Thread Barry Warsaw
On Mar 23, 2015, at 11:25 AM, Piotr Ożarowski wrote: >I can change that and remove them in first dh-python's Stretch upload if >there's an agreement to do that. +1. pth files are evil. If stuff breaks because of their removal, we'll have plenty of time to fix them. Cheers, -Barry -- To UNSUB

Re: Debian and .pth files

2015-03-23 Thread Piotr Ożarowski
[Kay Hayen, 2015-03-23] > However, these .pth files are scanned for, and this code is executed in an > "exec" from "site.py", needlessly. .pth files are evil indeed. I didn't want to remove them by default, so I only described in dh_python2 and 3's manpage how to do it ("*.pth" line in debian/pyth

Debian and .pth files

2015-03-23 Thread Kay Hayen
Hello there, I have recently encountered the strangeness of ".pth" files, and am surprised that Debian uses the dynamic code variants too: cat /usr/lib/python2.7/dist-packages/zope.interface-4.1.1-nspkg.pth import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('zope',));i