distutils gcc unix

Martin v. Loewis martin at v.loewis.de
Sat Jul 27 09:30:22 EDT 2002


Michiel Jan Laurens de Hoon <mdehoon at ims.u-tokyo.ac.jp> writes:

> Thanks for your reply. I am having some difficulties setting the CC
> environment variable, probably due to some peculiarities of our Unix
> system. But if I solve that and set CC=gcc, would distutils know about
> it? 

Yes, they use the compiler identified by this variable.

> I would think that distutils would choose the compiler options for
> the regular cc compiler, but substitute gcc for CC when the actual
> compilation starts, thus ending up with the wrong compiler
> options. Or am I missing something here? Does distutils check for
> the CC environment variable?

Yes, it does. As for the options: For most purposes, the options of cc
and gcc are identical. In the few places where they differ, distutils
know about the differences.

Regards,
Martin




More information about the Python-list mailing list