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

Phillip J. Eby pje at telecommunity.com
Fri Dec 8 20:57:39 CET 2006

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 data, you must import, *at 
> absolute
> > minimum*:
> >
> > distutils
>I must read-in(!) at absolute minimum just the "setup.py" file, without
>any includes.

Then you are confused about how run_setup() works.  run_setup() invokes the 
setup.py, which causes all of those modules to be imported.

Perhaps you intend to instead parse the setup.py and figure out what it 
does from its syntax tree, without actually executing it?  Good luck on 
that as well.

More information about the Distutils-SIG mailing list