Re: [Distutils] PEP 376 for Distutils

2009-03-04 Thread Ian Bicking
On Wed, Feb 25, 2009 at 4:16 PM, P.J. Eby p...@telecommunity.com wrote: I wonder why they don't just use the sitewide distutils.cfg file, which would let them configure user-installed packages to go to somewhere else, e.g.: [install] prefix = /usr/local (And of course the build tools could

Re: [Distutils] PEP 376 for Distutils

2009-02-26 Thread Floris Bruynooghe
2009/2/25 P.J. Eby p...@telecommunity.com: At 10:03 PM 2/25/2009 +, Floris Bruynooghe wrote: It's interesting to point out what seems to be planned for Debian: http://lists.debian.org/debian-devel/2009/02/msg00431.html Quoting just the relevant part: Local installation path

Re: [Distutils] PEP 376 for Distutils

2009-02-25 Thread Joachim König
Tarek Ziadé wrote: ok so far, from the whole dicussion it seems that everyone agrees that the Python version is superfluous in the .egg-info files, so I'll update the PEP for this point. I'll also start to write more details about uninstallation As P.J.Eby pointed out the importance of PEP

Re: [Distutils] PEP 376 for Distutils

2009-02-25 Thread Tarek Ziadé
2009/2/25 Joachim König h...@online.de: Tarek Ziadé wrote: ok so far, from the whole dicussion it seems that everyone agrees that the Python version is superfluous in the .egg-info files, so I'll update the PEP for this point. I'll also start to write more details about uninstallation As

Re: [Distutils] PEP 376 for Distutils

2009-02-25 Thread P.J. Eby
At 09:16 AM 2/25/2009 +0100, Joachim König wrote: Tarek Ziadé wrote: ok so far, from the whole dicussion it seems that everyone agrees that the Python version is superfluous in the .egg-info files, so I'll update the PEP for this point. I'll also start to write more details about

Re: [Distutils] PEP 376 for Distutils

2009-02-25 Thread Floris Bruynooghe
On Tue, Feb 24, 2009 at 11:48:13AM -0800, Andrew Straw wrote: Ronald Oussoren wrote: What about another interoperability hook for system packages: specify a file that a (system) package manager can include into the egg-info directory (or egg-file) to tell setuptools/pip that this egg is

Re: [Distutils] PEP 376 for Distutils

2009-02-25 Thread P.J. Eby
At 10:03 PM 2/25/2009 +, Floris Bruynooghe wrote: It's interesting to point out what seems to be planned for Debian: http://lists.debian.org/debian-devel/2009/02/msg00431.html Quoting just the relevant part: Local installation path --- When installing Python modules

Re: [Distutils] PEP 376 for Distutils

2009-02-24 Thread Joachim König
Tarek Ziadé wrote: If you look at install_egg_info, it will add the Python version http://svn.python.org/projects/python/trunk/Lib/distutils/command/install_egg_info.py I am not sure either this should be kept. I don't see the rationale either, since sys.version is known at runtime, it seems

Re: [Distutils] PEP 376 for Distutils

2009-02-24 Thread Tarek Ziadé
Philip wrote: When a distutils package does it. I'm not positive, but if 'pip' supports namespace packages without using .pth files, then it has to use a shared __init__ also. And in the long run, easy_install will do this too. So, the uninstallation code should simply not remove file(s)

Re: [Distutils] PEP 376 for Distutils

2009-02-24 Thread P.J. Eby
At 01:33 PM 2/24/2009 +0100, Tarek Ziadé wrote: Philip wrote: So, the uninstallation code should simply not remove file(s) that are referenced by more than one manifest in the target directory -- a relatively simple, future-proof safeguard, that doesn't require any specific knowledge of

Re: [Distutils] PEP 376 for Distutils

2009-02-24 Thread Joachim König
P.J. Eby schrieb: At 09:39 AM 2/24/2009 +0100, Joachim König wrote: could the egg-info directory be put somewhere else (as a configuration/command line option)? No, since it's used to identify the installed location of the code that goes with it, ala PEP 262. In other words, sys.path is its

Re: [Distutils] PEP 376 for Distutils

2009-02-24 Thread Ronald Oussoren
On 24 Feb, 2009, at 13:33, Tarek Ziadé wrote: 2009/2/24 Joachim König h...@online.de: An other option could be to put the egg-info dir into the package itself, e.g. zlib/ __init__.py egg-info/ PKG-INFO MANIFEST RECORD ... This would require setuptools and pip to

Re: [Distutils] PEP 376 for Distutils

2009-02-24 Thread Floris Bruynooghe
On Tue, Feb 24, 2009 at 04:39:24PM +0100, Ronald Oussoren wrote: On 24 Feb, 2009, at 13:33, Tarek Ziadé wrote: 2009/2/24 Joachim König h...@online.de: An other option could be to put the egg-info dir into the package itself, e.g. zlib/ __init__.py egg-info/ PKG-INFO

Re: [Distutils] PEP 376 for Distutils

2009-02-24 Thread P.J. Eby
At 04:45 PM 2/24/2009 +0100, Ronald Oussoren wrote: What about another interoperability hook for system packages: specify a file that a (system) package manager can include into the egg-info directory (or egg-file) to tell setuptools/pip that this egg is managed by the system and hence shouldn't

Re: [Distutils] PEP 376 for Distutils

2009-02-24 Thread P.J. Eby
At 06:21 PM 2/24/2009 +, Floris Bruynooghe wrote: On Mon, Feb 23, 2009 at 09:53:17PM -0500, P.J. Eby wrote: So, the uninstallation code should simply not remove file(s) that are referenced by more than one manifest in the target directory -- a relatively simple, future-proof safeguard,

Re: [Distutils] PEP 376 for Distutils

2009-02-24 Thread Tarek Ziadé
2009/2/24 P.J. Eby p...@telecommunity.com: At 09:39 AM 2/24/2009 +0100, Joachim König wrote: could the egg-info directory be put somewhere else (as a configuration/command line option)? No, since it's used to identify the installed location of the code that goes with it, ala PEP 262.  In

Re: [Distutils] PEP 376 for Distutils

2009-02-24 Thread P.J. Eby
At 02:57 PM 2/24/2009 -0500, P.J. Eby wrote: At 04:45 PM 2/24/2009 +0100, Ronald Oussoren wrote: What about another interoperability hook for system packages: specify a file that a (system) package manager can include into the egg-info directory (or egg-file) to tell setuptools/pip that this

Re: [Distutils] PEP 376 for Distutils

2009-02-23 Thread Floris Bruynooghe
Hello Tarek On Sun, Feb 22, 2009 at 03:37:50AM +0100, Tarek Ziadé wrote: I have started a PEP for Distutils, I would like to work out for Pycon. http://svn.python.org/projects/peps/trunk/pep-0376.txt Looks quite nice so far IMHO. Here some early feedback... Back to our `zlib` example, we

Re: [Distutils] PEP 376 for Distutils

2009-02-23 Thread Tarek Ziadé
On Tue, Feb 24, 2009 at 12:13 AM, Floris Bruynooghe floris.bruynoo...@gmail.com wrote: Hello Tarek On Sun, Feb 22, 2009 at 03:37:50AM +0100, Tarek Ziadé wrote: I have started a PEP for Distutils, I would like to work out for Pycon. http://svn.python.org/projects/peps/trunk/pep-0376.txt

Re: [Distutils] PEP 376 for Distutils

2009-02-23 Thread P.J. Eby
At 01:50 AM 2/24/2009 +0100, Tarek Ziadé wrote: I having the same problem with the version : since it is already located in PKG-INFO, there's no need to have it in the folder name; It's there so pkg_resources doesn't need to read the file in order to locate an available version of the