[Distutils] Distutils.sysconfig.customize_compiler wrong ?
rupert.thurner at gmail.com
Fri May 22 16:07:05 CEST 2009
On May 22, 3:41 pm, Tarek Ziadé <ziade.ta... at gmail.com> wrote:
> On Fri, May 22, 2009 at 3:36 PM, rupert.thurner
> <rupert.thur... at gmail.com> wrote:
> > are you sure you are not violating something here?
> What do you mean ?
the "This function is even more special-purpose, and should only be
from Python’s own build procedures. "
> > the packager of our operating systems python had the compiler in /opt/
> > studio/... but we do not.
> build_ext will pick the CC it finds in the Makefile but overrides it if one
> is set in os.environ['CC']
i cannot find it in the code ... but it seems to work on the top level
but is not passed on, so i wonder where in the code this is ?
# ggrep -R os.environ /opt/csw/lib/python2.6/site-packages/setuptools/
easy_install.py: PYTHONPATH = os.environ.get
easy_install.py: self.install_dir, os.environ.get
easy_install.py: sitedirs = filter(None,os.environ.get
easy_install.py: home = os.environ.get('HOME')
upload.py: if os.environ.has_key('HOME'):
upload.py: rc = os.path.join(os.environ['HOME'], '.pypirc')
> I am unable to reproduce your problem here, so you should check as I
> previously said,
> what is happening when you call build_ext, to understand why your CC
> isn't picked.
me and python programming :) i did
python -m pdb setup.py build
# python -m pdb setup.py build
-> import glob, os, re, struct, string, sys
*** NameError: name 'os' is not defined
(Pdb) import os
(Pdb) b distutils.command.build_ext
*** The specified object 'distutils.command.build_ext' is not a
or was not found along sys.path.
More information about the Distutils-SIG