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

Andrew Kuchling akuchlin@mems-exchange.org
Mon Feb 19 14:10:00 2001


On Mon, Feb 19, 2001 at 07:02:41PM +0100, Thomas Heller wrote:
>From: "Rene Liebscher" <R.Liebscher@gmx.de>:
>> Each option is for the last mentioned command, but only the first
>> command is really executed. If it executes internal other commands
>> then they have already set their options.
>> 
>But why, if this would be true, does
>python setup.py build --debug install
>install anything?

Rene's explanation isn't quite correct; commands are run from left to
right, but there's a cache to prevent commands from being run twice,
so 'build' is run, and then 'install', which doesn't re-run 'build'.
See the run_commands()/run_command() methods in the Distribution class.

--amk