distutils unix gcc, still trying
Michiel Jan Laurens de Hoon
mdehoon at ims.u-tokyo.ac.jp
Tue Aug 13 21:30:51 EDT 2002
I verified what customize_compiler is actually doing. It calls
get_config_vars, which calls _init_posix, which calls parse_makefile.
This then finds the arguments supplied to get_config_vars from the
python Makefile. So where does it check for the environment variables?
I am running Python 2.2.
>> In an effort to get to the bottom of this, I looked at the distutils
>> source code. As far as I can tell, distutils only checks the Makefile
>> that was used to build Python. I didn't see any checks for the CC
>> environment variable. Does anybody know in which routine of distutils
>> this check takes place?
>
>
> Yes. Before starting its compiles, the distutils.command.build_ext.run()
> method calls distutils.sysconfig.customize_compiler(), which looks up
> the values of environment variables like CC and does the necessary
> substitutions.
>
More information about the Python-list
mailing list