[Distutils] The build_ext command has -I and -L options, why don't others???

M.-A. Lemburg mal@lemburg.com
Mon Jul 23 04:07:01 2001


Paul Moore wrote:
> 
> On Sat, 21 Jul 2001 21:12:44 +0200, "M.-A. Lemburg" <mal@lemburg.com> wrote:
> 
> >python build_ext -I ... -L ... build
> >
> >should do the trick.
> 
> That's a bit messy, though - and not particularly intuitive.

Agreed, but it works ;-) (and you can also have your users edit
the setup.cfg file section for build_ext, so they won't really
notice)
 
> >AFAIK, all commands inherit command line option from the Distribution
> >class, so by subclassing you should be able to provide those extra
> >options to all subcommands. Could be wrong though... the option passing
> >in distutils is something of a mess.
> 
> I'll look into this - but I agree, the area is complex and non-trivial to
> understand.
> 
> If I can get a simple example working, I'll write it up for the documentation. I
> already have a nice simple "How to add a custom command" sample.

That'd be great !

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Consulting & Company:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/