On May 22, 3:41 pm, Tarek Ziadé <ziade.ta...@gmail.com> wrote: > On Fri, May 22, 2009 at 3:36 PM, rupert.thurner > > <rupert.thur...@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 used 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/ * /opt/csw/lib/python2.6/site-packages/setuptools/command/ easy_install.py: PYTHONPATH = os.environ.get ('PYTHONPATH','').split(os.pathsep) /opt/csw/lib/python2.6/site-packages/setuptools/command/ easy_install.py: self.install_dir, os.environ.get ('PYTHONPATH','') /opt/csw/lib/python2.6/site-packages/setuptools/command/ easy_install.py: sitedirs = filter(None,os.environ.get ('PYTHONPATH','').split(os.pathsep)) /opt/csw/lib/python2.6/site-packages/setuptools/command/ easy_install.py: home = os.environ.get('HOME') /opt/csw/lib/python2.6/site-packages/setuptools/command/ upload.py: if os.environ.has_key('HOME'): /opt/csw/lib/python2.6/site-packages/setuptools/command/ 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 > /tmp/Imaging-1.1.6/setup.py(9)<module>() -> import glob, os, re, struct, string, sys (Pdb) os.environ['CC'] *** NameError: name 'os' is not defined (Pdb) import os (Pdb) os.environ['CC'] '/opt/SUNWspro/bin/cc' (Pdb) b distutils.command.build_ext *** The specified object 'distutils.command.build_ext' is not a function or was not found along sys.path. rupert. _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig