distutils gcc unix
Michiel Jan Laurens de Hoon
mdehoon at ims.u-tokyo.ac.jp
Sun Jul 28 01:46:46 EDT 2002
Well my real problem is how to get distutils to use gcc on unix systems.
As far as I know, I can only use --compiler='unix' on unix systems, and
for some reason my distutils ignores the environment variable CC. So I
always end up with the cc compiler, even if I set CC=gcc.
Chris Liechti wrote:
> Michiel Jan Laurens de Hoon <mdehoon at ims.u-tokyo.ac.jp> wrote in
> news:3D42D972.2060607 at ims.u-tokyo.ac.jp:
>
>
>>Sorry ... it seems that distutils ignores the CC environment variable
>>(see below). This was done on cygwin.
>>
>
> there is a note somewhere in the docs that you can use --compiler=mingw32
> (which works with gcc/cygwin) the doc also says how to use the borland
> compiler.
> i always have trouble to find the respecive note, but i _know_ it's
> somewhere in the docs that get installed with python. :-(
>
>
>>On Unix, the CC variable was
>>also ignored using setenv CC gcc, and also with set CC=gcc. Here
>>distutils defaulted to the standard cc compiler. I am guessing that it
>>took the compiler name from the Makefile in /lib/python2.2/config.
>>Any ideas?
>>Thanks a lot for your help.
>>
>>--Michiel.
More information about the Python-list
mailing list