[Distutils] Distutils enhancement - set variables from the command line
Paul Moore
gustav@morpheus.demon.co.uk
Tue Jul 17 15:44:15 2001
On Tue, 17 Jul 2001 18:02:37 +0200, M.-A. Lemburg wrote:
>There's no such thing as "arbitrary configuration information" ;-)
>
>Configuration parameters always have to be written down in some
>setup.py file and making them additionally available as options is=20
>really easy with distutils.
[...]
>Why not simply add an --jpeg=3D<location> option to the build command
>by subclassing the standard one in distutils (I do that a lot in the
>eGenix mx stuff and it works just fine -- distutils is wonderful
>at this; I wish it would use that paradigm more often, e.g. for
>compiler classes as well) ?
... because I didn't know you could do that.
That's excellent - it simply never occurred to me that something like =
that would
be possible, let alone easy. I am still thinking in makefile terms (or at=
best,
in Perl MakeMaker terms), where this sort of thing is annoyingly =
difficult, if
it's even possible.
It's this sort of flexibility that makes Python *so* nice to use. It's =
just a
pity that there isn't enough of this type of feature documented for =
distutils.
Thanks for pointing this out to me. I'll go and have a look at the mx =
setup
files, for further enlightenment...
Paul.