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

Paul Moore gustav@morpheus.demon.co.uk
Sun Jul 22 17:07:20 2001


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.

>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.

Paul.