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. _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
