Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-12 Thread Jorge Vargas
hi troll PS: just making sure other people in this list know about it PSS: please do not reply On 12/8/06, Ilias Lazaridis [EMAIL PROTECTED] wrote: Ilias Lazaridis wrote: ___ Distutils-SIG maillist - Distutils-SIG@python.org

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-08 Thread Ilias Lazaridis
Phillip J. Eby wrote: At 01:42 PM 12/8/2006 +0200, Ilias Lazaridis wrote: are pkg_resources.Distribution objects finally the internal representation of eggs? Yes. ok. Possibly the class should be named pkg_resources.Egg or pkg_resources.EggDistribution in order to become more descriptive.

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-08 Thread Ilias Lazaridis
Phillip J. Eby wrote: At 09:45 PM 12/7/2006 +0200, Ilias Lazaridis wrote: I am a little overworked at this point, but this should be the right direction to enable setuptools to create distributions whilst using the information within setup.py (and without breaking any behaviour): The only

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-08 Thread Ilias Lazaridis
Phillip J. Eby wrote: At 09:03 PM 12/7/2006 +0200, Ilias Lazaridis wrote: This is a special and limited use-case: The eggs do *not* need to be found by other eggs/applications, as they are used only by the application that loads them in. That's 100% irrelevant. ok There are a whole

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-08 Thread Phillip J. Eby
At 03:35 PM 12/8/2006 +0200, Ilias Lazaridis wrote: Possibly the class should be named pkg_resources.Egg or pkg_resources.EggDistribution in order to become more descriptive. No. It's also used to track source distributions being downloaded from PyPI, and even .win32.exe distributions. It's

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-08 Thread Phillip J. Eby
At 08:24 PM 12/8/2006 +0200, Ilias Lazaridis wrote: Retrieving a few values directly from the setup.py (instead from an egg-info) would be fast and without any dependency. In order to invoke run_setup to get the data, you must import, *at absolute minimum*: distutils distutils.cmd

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-08 Thread Ilias Lazaridis
Phillip J. Eby wrote: At 08:24 PM 12/8/2006 +0200, Ilias Lazaridis wrote: Retrieving a few values directly from the setup.py (instead from an egg-info) would be fast and without any dependency. In order to invoke run_setup to get the data, you must import, *at absolute minimum*:

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-08 Thread Phillip J. Eby
At 09:22 PM 12/8/2006 +0200, Ilias Lazaridis wrote: Phillip J. Eby wrote: At 08:24 PM 12/8/2006 +0200, Ilias Lazaridis wrote: Retrieving a few values directly from the setup.py (instead from an egg-info) would be fast and without any dependency. In order to invoke run_setup to get the

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-08 Thread Ilias Lazaridis
Ilias Lazaridis wrote: I have the following use-case: within an application, i like to load several plugins from an folder, without any user-interaction app/plugins/pluginone app/plugins/plugintwo the plugins (standard sources prepared for setuptools, coming from svn) are arranged

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-07 Thread Phillip J. Eby
At 03:41 PM 12/7/2006 +0200, Ilias Lazaridis wrote: Is there any documented way to load such a raw egg (egg sources without a generated egg-info) into the application, without the need to generate the egg-info? No. Of course, if you know where the plugin directories are, you can always run

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-07 Thread Ilias Lazaridis
Phillip J. Eby wrote: At 06:24 PM 12/7/2006 +0200, Ilias Lazaridis wrote: Looks somehow like this: ... setuptools.dist.Distribution instance at 0x0187E260 That Distribution is a distutils distribution, not a pkg_resources distribution. ok How can I create an egg representing object

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-07 Thread Ilias Lazaridis
Phillip J. Eby wrote: At 06:24 PM 12/7/2006 +0200, Ilias Lazaridis wrote: Looks somehow like this: ... How can I create an egg representing object (from the sources/setup.py), from which I can load the entry-points afterwards, without having to generate an egg_info on the file-system? You

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-07 Thread Ilias Lazaridis
Phillip J. Eby wrote: At 08:57 PM 12/7/2006 +0200, Ilias Lazaridis wrote: File C:\prg\py24\lib\site-packages\setuptools-0.6c3-py2.4.egg\pkg_resources.py, line 1829, in load if require: self.require(env, installer) Yeah, you need to pass 'require=False' to entrypoint.load(). See:

Re: [Distutils] SETUPTOOLS - Loading Eggs which do not have an egg_info

2006-12-07 Thread Phillip J. Eby
At 08:57 PM 12/7/2006 +0200, Ilias Lazaridis wrote: ep_map = pkg_resources.EntryPoint.parse_map(dist.entry_points, dist) By the way, I missed this line in your email before: you should *not* pass dist as the second argument here. That method is looking for a