[Distutils] Adding a setuptool command that runs when setup.py build is invoked

Phillip J. Eby pje at telecommunity.com
Tue Jan 9 16:59:24 CET 2007

At 09:51 AM 1/9/2007 +0100, Ronald Oussoren wrote:
>Another alternative is to tweak
>distutils.commands.build.build.sub_commands, which is more convenient
>than subclassing.

But will crash other setup scripts if they're being run by easy_install, 
unless you use a try/finally block to remove your "tweak" afterwards.

Subclassing is therefore the recommended (and documented) procedure.

More information about the Distutils-SIG mailing list