[Distutils] How to customize egg_info behavior

Jason R. Coombs jaraco at jaraco.com
Sat Jul 31 21:39:37 CEST 2010

I'm using setuptools 0.6c11.


I'd like to programmatically customize the way the egg_info command is run.
That is, in my setup.py, I would like to run some functions to determine the
tag-build, tag-date, and tag-svn-revision parameters to egg_info. Are there


How is this task best accomplished? Do I subclass the egg_info Command? If
so, do I just specify cmdclass={'egg_info':my_custom_egg_info} ?  Or would
you recommend another approach?




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20100731/643bf6e9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6448 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20100731/643bf6e9/attachment.bin>

More information about the Distutils-SIG mailing list