[Distutils] Distutils.sysconfig.customize_compiler wrong ?
rupert.thurner at gmail.com
Fri May 22 15:36:02 CEST 2009
are you sure you are not violating something here? the documentation
on http://docs.python.org/distutils/apiref.html says:
Do any platform-specific customization of a
This function is only needed on Unix at this time, but should be
called consistently to support forward-compatibility. It inserts the
information that varies across Unix flavors and is stored in Python’s
Makefile. This information includes the selected compiler, compiler
and linker options, and the extension used by the linker for shared
This function is even more special-purpose, and should only be used
from Python’s own build procedures.
the packager of our operating systems python had the compiler in /opt/
studio/... but we do not.
On May 22, 3:19 pm, Tarek Ziadé <ziade.ta... at gmail.com> wrote:
> On Fri, May 22, 2009 at 3:11 PM, rupert.thurner
> <rupert.thur... 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, checkhttp://docs.python.org/library/pdb.html
> Tarek Ziadé |http://ziade.org
> Distutils-SIG maillist - Distutils-... at python.orghttp://mail.python.org/mailman/listinfo/distutils-sig
More information about the Distutils-SIG