[Distutils] Adding --compiler pass-through option to install

John J. Lee phrxy@csv.warwick.ac.uk
Sat Feb 17 22:38:59 2001


On Sat, 17 Feb 2001, M.-A. Lemburg wrote:

> Wouldn't it make sense to add a --compiler pass-through option
> to the install command ?
>
> That way, users having non-default compiler setups will be able
> to install distutils packages using one command only:
>
> python setup.py install --compiler mycompiler
>
> instead of having to run
>
> python setup.py build --compiler mycompiler
> python setup.py install
>
[...]

I agree, but in fact the latter didn't work for me when compiling FORTRAN
(I added a compiler 'unixf' that was just a trivial subclass of 'unixc').
It would compile with

python setup.py build --compiler unixf

but then would try to rebuild it again on

python setup.py install

I didn't try to find out why because I thought adding a compiler was
probably the wrong way to do what I was doing anyway, but does anyone know
exactly why this happens?


John