Re: Deprecating /usr/lib/site-python in python policy

2006-06-12 Thread Joe Wreschnig
On Mon, 2006-06-12 at 17:08 +0300, Juha-Matti Tapio wrote: > On Mon, Jun 12, 2006 at 09:20:13AM +0200, Raphael Hertzog wrote: > > /usr/lib/site-python is on the sys.path of all python versions so we must > > make sure to provide the best (ie .py with working .pyc) for all python > > versions. > >

Re: Deprecating /usr/lib/site-python in python policy

2006-06-12 Thread Raphael Hertzog
On Mon, 12 Jun 2006, Juha-Matti Tapio wrote: > On Mon, Jun 12, 2006 at 09:20:13AM +0200, Raphael Hertzog wrote: > > /usr/lib/site-python is on the sys.path of all python versions so we must > > make sure to provide the best (ie .py with working .pyc) for all python > > versions. > > Why "must"?

Re: Deprecating /usr/lib/site-python in python policy

2006-06-12 Thread Juha-Matti Tapio
On Mon, Jun 12, 2006 at 09:20:13AM +0200, Raphael Hertzog wrote: > /usr/lib/site-python is on the sys.path of all python versions so we must > make sure to provide the best (ie .py with working .pyc) for all python > versions. Why "must"? Has this for some reason become a problem just recently o

Re: Deprecating /usr/lib/site-python in python policy

2006-06-12 Thread Raphael Hertzog
On Mon, 12 Jun 2006, Alexandre Fayolle wrote: > > Since this directory is in sys.path of all python versions, if we > > byte-compile those in-place for the current version, then the modules > > won't work with other python versions. > > This just not true. Python is smart enough not to use the .py

Re: Deprecating /usr/lib/site-python in python policy

2006-06-11 Thread Alexandre Fayolle
On Sun, Jun 11, 2006 at 02:35:05PM +0200, Raphael Hertzog wrote: > Hi, > > as part of the new policy we should also deprecate /usr/lib/site-python. I'll have to reread the new policy, but I think this is not a very good idea. /usr/lib/site-python exists for modules which do not care about which v

Re: Deprecating /usr/lib/site-python in python policy

2006-06-11 Thread Raphael Hertzog
On Sun, 11 Jun 2006, Thomas Viehmann wrote: > --- lintian-1.23.21/checks/files.desc 2006-05-04 05:37:21.0 +0200 > +++ lintian-1.23.21.tv0/checks/files.desc 2006-06-11 18:36:34.0 > +0200 > @@ -360,6 +360,12 @@ > Info: Debian packages should not install into /opt, because it >

Re: Deprecating /usr/lib/site-python in python policy

2006-06-11 Thread Thomas Viehmann
tag 372748 +patch thanks Dafydd Harries wrote: > Ar 11/06/2006 am 14:35, ysgrifennodd Raphael Hertzog: >> Someone should file a wishlist bug on lintian to check that packages don't >> use /usr/lib/site-python any more. > Done: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372748 Maybe the attac

Re: Deprecating /usr/lib/site-python in python policy

2006-06-11 Thread Dafydd Harries
Ar 11/06/2006 am 14:35, ysgrifennodd Raphael Hertzog: > Someone should file a wishlist bug on lintian to check that packages don't > use /usr/lib/site-python any more. Done: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372748 -- Dafydd -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a

Deprecating /usr/lib/site-python in python policy

2006-06-11 Thread Raphael Hertzog
Hi, as part of the new policy we should also deprecate /usr/lib/site-python. Since this directory is in sys.path of all python versions, if we byte-compile those in-place for the current version, then the modules won't work with other python versions. Most packages using this directory (like lin