[Distutils] how to set cc correctly?

Tarek Ziadé ziade.tarek at gmail.com
Mon Apr 27 10:52:12 CEST 2009


On Sun, Apr 26, 2009 at 9:39 PM, rupert.thurner
<rupert.thurner at gmail.com> wrote:
> how could one set the compiler correctly?
> http://opencsw has a setuptools package, which does not use the cc in
> the path, but in /opt/studio/SOS11/SUNWspro/bin/cc
>
> so the following happens:
>
> # CC=/opt/SUNWspro/bin/cc easy_install genshi
> Searching for genshi
> Reading http://pypi.python.org/simple/genshi/
> Reading http://genshi.edgewall.org/
> Reading http://genshi.edgewall.org/wiki/Download
> Best match: Genshi 0.5.1
> Downloading http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.zip
> Processing Genshi-0.5.1.zip
> Running Genshi-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/
> easy_install-7yiT65/Genshi-0.5.1/egg-dist-tmp-Cp42JQ
> warning: no previously-included files found matching 'doc/
> 2000ft.graffle'
> warning: no previously-included files matching '*' found under
> directory 'doc/logo.lineform'
> unable to execute /opt/studio/SOS11/SUNWspro/bin/cc: No such file or
> directory

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.

Are you sure "/opt/studio/SOS11/SUNWspro/bin/cc" exists and is executable ?

If cc is located somewhere else, try:

# CC=/its/here/cc easy_install genshi

If you don't provide any CC, it will use the one defined in the
Makefile of your Python
installation.

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


More information about the Distutils-SIG mailing list