[Distutils] Distutils.sysconfig.customize_compiler wrong ?
ziade.tarek at gmail.com
Fri May 22 15:19:58 CEST 2009
On Fri, May 22, 2009 at 3:11 PM, rupert.thurner
<rupert.thurner at gmail.com> wrote:
> we now face the same issue with pil-1.1.6. it compiles correctly, but
> at the end it somehow tries again to call the default compiler the
> creator of the easy_install package used. is this set somewhere, or
> where is this set?
> we have it here: /opt/SUNWspro/bin/cc
> while the default is: /opt/studio/SOS11/SUNWspro/bin/cc
> # CC=/opt/SUNWspro/bin/cc python setup.py build
> running build
> running build_py
> running build_ext
The build_ext command creates a new compiler instance, then call
on it, that is supposed to use the CC set in the environment when you
are under a unix-like system.
What you can do to find out what is going on is to set a pdb in
in the run command, to see how customize_compiler acts in your environment.
If you don't know how to use pdb, check http://docs.python.org/library/pdb.html
Tarek Ziadé | http://ziade.org
More information about the Distutils-SIG