[Distutils] distutils post processing
Phillip J. Eby
pje at telecommunity.com
Tue Nov 7 17:39:27 CET 2006
At 10:42 AM 11/7/2006 -0500, Eric S. Johansson wrote:
>I'm trying to extend distutiles to do things like fix permissions etc.
> have a draft that works but I'm not sure how to invoke it. I'm
>running it after setup() but as you would expect it always run on any
>setup operation. How can I limit when my code run only when it's a
>build command?
>
>I tried following the distutiles extension instructions but it is a bit
>thin. some pointers would be appreciated. Thanks for your time.
Subclass the appropriate command class, e.g.
distuils.command.build_ext.build_ext or whatever, extending the run()
method to do what you want. Add it to the 'cmdclass' dictionary in your
setup() call.
More information about the Distutils-SIG
mailing list