[Distutils] Questions about Python Eggs
ianb at colorstudy.com
Sun May 22 20:07:49 CEST 2005
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
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the Distutils-SIG