[Distutils] how to set cc correctly?

Tarek Ziadé ziade.tarek at gmail.com
Tue Apr 28 07:39:26 CEST 2009


On Tue, Apr 28, 2009 at 5:23 AM, David Cournapeau
<david at ar.media.kyoto-u.ac.jp> wrote:
> Tarek Ziadé wrote:
>>
>> I am not sur to understand what you are trying to achieve.
>>
>> This indicates your environment variable CC was properly set and sent
>> to the compiler.
>
> I don't think it does: the user requires /opt/SUNWspro/bin/cc as a C
> compiler, and easy_install uses /opt/studio/SOS11/SUNWspro/bin/cc which
> are different compilers, unless one is a softlink to the other.

Oops, correct, I didn't notice there were different.

Rupert, can you try downloading that package, uncompress it and run :

# CC=/opt/SUNWspro/bin/cc python setup.py install

If this fails too, there's a problem in Distutils.sysconfig.customize_compiler
we need to look at. (basically, it looks at os.environ if your
compiler type is "unix"
and not mingw or bcpp, or msvc etc..)

If it works, the problem is on easy_install itself.


>
> cheers,
>
> David
>



-- 
Tarek Ziadé | http://ziade.org


More information about the Distutils-SIG mailing list