[Distutils] Questions about Python Eggs

Phillip J. Eby pje at telecommunity.com
Sun May 22 20:35:53 CEST 2005

At 01:07 PM 5/22/2005 -0500, Ian Bicking wrote:
>Phillip J. Eby wrote:
>>>Is it safe to do nasty monkeypatching wherein I replace distutils.setup
>>>with setuptools.setup?  Or, more directly, anyone have code around to
>>>build eggs programmatically from other people's packages?
>>If distutils' run_setup() worked correctly, you could probably do this.
>>Of course, if you control your environment, you could also possibly just 
>>copy bdist_egg.py into your Python installation's distutils/command 
>>directory.  I don't think bdist_egg has any dependencies to the rest of 
>>setuptools that would prevent it from being used from regular distutils 
>>that way.
>>So, try copying bdist_egg.py into distutils/command, and then run 
>>"setup.py bdist_egg" and see if it works.
>Ah, it's much easier than we realized:
>   python setup.py --command-packages=setuptools.command bdist_egg

Cool.  Feel free to update the PythonEggs page on the PEAK Wiki if I don't 
get to it first.

By the way, I've just checked in some enhancements to pkg_resources, 
particularly in the dependency resolution subsystem.  'require()' has a 
better algorithm now (less thorough, but more understandable and more 
computationally tractable), but is still not actually usable.  However, 
there's now more explanation there of what pieces need to be finished in 
order for 'require()' to actually work.

More information about the Distutils-SIG mailing list