Re: [Distutils] Anyone stuck with easy_install / has .pth file issues -- this is for you!

2009-05-04 Thread Garrett Cooper
On Mon, May 4, 2009 at 1:46 PM, P.J. Eby wrote: > At 01:11 PM 5/4/2009 -0700, Garrett Cooper wrote: >> >> You're right -- it doesn't protect against the following (><): >> >> /full/path/to/package.egg >> ./package.egg > > By duplicates, I meant 'package-1.0.egg' and 'package-1.1.egg', not > altern

Re: [Distutils] Adding entry points into Distutils ?

2009-05-04 Thread Ben Finney
Tarek Ziadé writes: > There are *many* benefits of adding entry points into Distutils. In > fact, adding a plugin system in there, will help make the commands > more extendable and therefore will help us in the long term to remove > things out of Distutils. I don't see what those advantages are.

Re: [Distutils] Adding entry points into Distutils ?

2009-05-04 Thread P.J. Eby
At 06:57 PM 5/4/2009 -0500, Ian Bicking wrote: * I'm uncomfortable with the way entry points are scanned. I haven't looked close enough to back it up with numbers, but I think there's a noticeable performance degradation when the number of installed packages becomes large. (Given the algori

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread David Lyon
On Tue, 5 May 2009 02:11:36 +0200, Tarek Ziadé wrote: > I am not sure to understand what you are explaining - when the python > interpreter starts up, it doesn't load every installed package > in memory. the loading happens when you do "import foo" Correct. I didn't say it loads them all. The

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
On Tue, May 5, 2009 at 2:00 AM, David Lyon wrote: > > > On Tue, 5 May 2009 01:58:57 +0200, Tarek Ziadé > wrote: > >> That is what entry points are providing : the ability to mark a code >> locate anywhere in your installation >> and to load it when needed in your execution context. > > ok - but d

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread David Lyon
On Tue, 5 May 2009 01:58:57 +0200, Tarek Ziadé wrote: > That is what entry points are providing : the ability to mark a code > locate anywhere in your installation > and to load it when needed in your execution context. ok - but don't we already have this in site.py ? inside the interpreter.

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
On Tue, May 5, 2009 at 1:47 AM, David Lyon wrote: > > Hi Tarek, > > > On Tue, 5 May 2009 01:37:34 +0200, Tarek Ziadé > wrote: > >> Furtermore, if we provide the ability to fill egg-info with third >> party packages registered through >> a plugin system, it make sense to prepare it at packaging ti

Re: [Distutils] Adding entry points into Distutils ?

2009-05-04 Thread Ian Bicking
On Mon, May 4, 2009 at 6:46 PM, Tarek Ziadé wrote: > Hello > > I am making a separate email for this topic to make sure no one misses it. > > There are *many* benefits of adding entry points into Distutils. In > fact, adding a plugin system in there, > will help make the commands more extendable

Re: [Distutils] Adding entry points into Distutils ?

2009-05-04 Thread David Lyon
On Tue, 5 May 2009 01:46:21 +0200, Tarek Ziadé wrote: > Hello > > I am making a separate email for this topic to make sure no one misses it. > > There are *many* benefits of adding entry points into Distutils. In > fact, adding a plugin system in there, > will help make the commands more exten

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread David Lyon
Hi Tarek, On Tue, 5 May 2009 01:37:34 +0200, Tarek Ziadé wrote: > Furtermore, if we provide the ability to fill egg-info with third > party packages registered through > a plugin system, it make sense to prepare it at packaging time to > avoid having to install this third party package > on t

[Distutils] Adding entry points into Distutils ?

2009-05-04 Thread Tarek Ziadé
Hello I am making a separate email for this topic to make sure no one misses it. There are *many* benefits of adding entry points into Distutils. In fact, adding a plugin system in there, will help make the commands more extendable and therefore will help us in the long term to remove things out

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
2009/5/3 P.J. Eby : > At 12:03 PM 5/3/2009 +0200, Tarek Ziadé wrote: >> >> The name of each file will have to be normalized: all upper case with >> no extensions. >> >> Any opinions ? > > I don't see any point to the normalization.  However, being able to install > arbitrary files in .egg-info is c

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread P.J. Eby
At 12:50 AM 5/5/2009 +0200, Tarek Ziadé wrote: On Mon, May 4, 2009 at 7:51 PM, P.J. Eby wrote: > At 06:01 PM 5/4/2009 +0200, Tarek Ziadé wrote: >> >> On Mon, May 4, 2009 at 5:48 PM, P.J. Eby wrote: >> >> > I don't see any point to the normalization. >> >> >> >> To avoid different naming convent

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
On Mon, May 4, 2009 at 7:42 PM, Hanno Schlichting wrote: > Tarek Ziadé wrote: >> On Mon, May 4, 2009 at 6:12 PM, Floris Bruynooghe >> wrote: >> >> Ok then, we will have to provide extra documentation to make people >> understand that the '.egg-info' directory has absolutely nothing to do >> with

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
On Mon, May 4, 2009 at 7:51 PM, P.J. Eby wrote: > At 06:01 PM 5/4/2009 +0200, Tarek Ziadé wrote: >> >> On Mon, May 4, 2009 at 5:48 PM, P.J. Eby wrote: >> >> > I don't see any point to the normalization. >> >> >> >> To avoid different naming conventions like: >> >> >> >> PKG-INFO, requires.txt, SO

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
On Mon, May 4, 2009 at 7:43 PM, Ian Bicking wrote: > On Mon, May 4, 2009 at 11:31 AM, Tarek Ziadé wrote: >> >> Ok then, we will have to provide extra documentation to make people >> understand that the '.egg-info' directory has absolutely nothing to do >> with egg-the-format >> but is rather a me

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
2009/5/4 P.J. Eby : > At 06:31 PM 5/4/2009 +0200, Tarek Ziadé wrote: >> >> Ok then, we will have to provide extra documentation to make people >> understand that the '.egg-info' directory has absolutely nothing to do >> with egg-the-format >> but is rather a metadata container. > > On the contrary;

Re: [Distutils] Anyone stuck with easy_install / has .pth file issues -- this is for you!

2009-05-04 Thread P.J. Eby
At 01:11 PM 5/4/2009 -0700, Garrett Cooper wrote: You're right -- it doesn't protect against the following (><): /full/path/to/package.egg ./package.egg By duplicates, I meant 'package-1.0.egg' and 'package-1.1.egg', not alternate paths to the same file. (As for the '.' replacement, you mig

Re: [Distutils] Anyone stuck with easy_install / has .pth file issues -- this is for you!

2009-05-04 Thread Garrett Cooper
On Mon, May 4, 2009 at 1:11 PM, Garrett Cooper wrote: > Hi P.J.! > > On Mon, May 4, 2009 at 8:20 AM, P.J. Eby wrote: >> At 02:43 AM 5/4/2009 -0700, Garrett Cooper wrote: >>> >>> Hi guys, >>>    Just thought I'd might provide this script to fellow developers >>> which fixes .pth files (easy-instal

Re: [Distutils] Anyone stuck with easy_install / has .pth file issues -- this is for you!

2009-05-04 Thread Garrett Cooper
Hi P.J.! On Mon, May 4, 2009 at 8:20 AM, P.J. Eby wrote: > At 02:43 AM 5/4/2009 -0700, Garrett Cooper wrote: >> >> Hi guys, >>    Just thought I'd might provide this script to fellow developers >> which fixes .pth files (easy-install.pth / .egg was the prime target >> -- see the comments for more

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread P.J. Eby
At 06:01 PM 5/4/2009 +0200, Tarek Ziadé wrote: On Mon, May 4, 2009 at 5:48 PM, P.J. Eby wrote: >> > I don't see any point to the normalization. >> >> To avoid different naming conventions like: >> >> PKG-INFO, requires.txt, SOURCES.txt > > And the problem with that is...? inconsistency, but rig

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Ian Bicking
On Mon, May 4, 2009 at 11:31 AM, Tarek Ziadé wrote: > Ok then, we will have to provide extra documentation to make people > understand that the '.egg-info' directory has absolutely nothing to do > with egg-the-format > but is rather a metadata container. > > 'egg-info' was introduced with adding

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Hanno Schlichting
Tarek Ziadé wrote: > On Mon, May 4, 2009 at 6:12 PM, Floris Bruynooghe > wrote: > > Ok then, we will have to provide extra documentation to make people > understand that the '.egg-info' directory has absolutely nothing to do > with egg-the-format > but is rather a metadata container. > So removi

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread P.J. Eby
At 06:31 PM 5/4/2009 +0200, Tarek Ziadé wrote: Ok then, we will have to provide extra documentation to make people understand that the '.egg-info' directory has absolutely nothing to do with egg-the-format but is rather a metadata container. On the contrary; .egg-info *is* an egg format; see th

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread P.J. Eby
At 05:54 PM 5/4/2009 +0200, Tarek Ziadé wrote: 2009/5/4 P.J. Eby : > At 05:23 PM 5/4/2009 +0200, Tarek Ziadé wrote: >> >> There's another point I was thinking about in PEP 376 >> >> What about dropping the 'egg' part in 'PROJECT.egg-info' ? and replace it >> with >> >> 'PROJECT.info' >> >> (and

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
On Mon, May 4, 2009 at 6:12 PM, Floris Bruynooghe wrote: >> >> But what about the idea ? > > > How can we be sure that we won't want to change it again in the > future? well I think it's now or never, since we are defining a standard here for this directory. > As for PROJECT.info, that still do

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Floris Bruynooghe
On Mon, May 04, 2009 at 05:54:59PM +0200, Tarek Ziadé wrote: > 2009/5/4 P.J. Eby : > > At 05:23 PM 5/4/2009 +0200, Tarek Ziadé wrote: > >> > >> There's another point I was thinking about in PEP 376 > >> > >> What about dropping the 'egg' part in 'PROJECT.egg-info'  ? and replace it > >> with > >> >

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
On Mon, May 4, 2009 at 5:48 PM, P.J. Eby wrote: >> > I don't see any point to the normalization. >> >> To avoid different naming conventions like: >> >> PKG-INFO, requires.txt, SOURCES.txt > > And the problem with that is...? inconsistency, but right, it makes no sense if any file/dir can be adde

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
2009/5/4 P.J. Eby : > At 05:23 PM 5/4/2009 +0200, Tarek Ziadé wrote: >> >> There's another point I was thinking about in PEP 376 >> >> What about dropping the 'egg' part in 'PROJECT.egg-info'  ? and replace it >> with >> >> 'PROJECT.info' >> >> (and make the 2.7 version compatible with PROJECT.egg-

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread P.J. Eby
At 07:34 PM 5/3/2009 +0200, Tarek Ziadé wrote: 2009/5/3 P.J. Eby : > At 12:03 PM 5/3/2009 +0200, Tarek Ziadé wrote: >> >> The name of each file will have to be normalized: all upper case with >> no extensions. >> >> Any opinions ? > > I don't see any point to the normalization. To avoid differen

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread P.J. Eby
At 05:23 PM 5/4/2009 +0200, Tarek Ziadé wrote: There's another point I was thinking about in PEP 376 What about dropping the 'egg' part in 'PROJECT.egg-info' ? and replace it with 'PROJECT.info' (and make the 2.7 version compatible with PROJECT.egg-info ) I know it's a minor change, Actu

Re: [Distutils] RFC : PEP 376 - egg.info

2009-05-04 Thread Tarek Ziadé
There's another point I was thinking about in PEP 376 What about dropping the 'egg' part in 'PROJECT.egg-info' ? and replace it with 'PROJECT.info' (and make the 2.7 version compatible with PROJECT.egg-info ) I know it's a minor change, but it seems that a lot of people are confused with this,

Re: [Distutils] Anyone stuck with easy_install / has .pth file issues -- this is for you!

2009-05-04 Thread P.J. Eby
At 02:43 AM 5/4/2009 -0700, Garrett Cooper wrote: Hi guys, Just thought I'd might provide this script to fellow developers which fixes .pth files (easy-install.pth / .egg was the prime target -- see the comments for more details): . Comments a

[Distutils] Anyone stuck with easy_install / has .pth file issues -- this is for you!

2009-05-04 Thread Garrett Cooper
Hi guys, Just thought I'd might provide this script to fellow developers which fixes .pth files (easy-install.pth / .egg was the prime target -- see the comments for more details): . Comments are more than welcome. If I get any, I'll try to get