[Distutils] distutils post processing
Phillip J. Eby
pje at telecommunity.com
Tue Nov 7 22:47:55 CET 2006
At 03:43 PM 11/7/2006 -0500, Eric S. Johansson wrote:
>Phillip J. Eby wrote:
> > 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.
>
> thank you. Your advice helped by can't quite say why. Somehow it
>closed a missing gap. I would suggest something more like this inside
>the documentation for integrating new commands
http://python.org/doc/2.4.1/dist/node29.html
More information about the Distutils-SIG
mailing list