[Distutils] non-"standard" compilers...

Anthony Baxter anthony at interlink.com.au
Sat May 28 13:26:39 CEST 2005

On Saturday 28 May 2005 02:24, Nicholas Bastin wrote:
> Ah, a little more tweaking reveals what is going on here.  distutils
> reads from pyconfig.h (a thing that might be useful to put in the
> doc), which, in my case, the one it finds isn't for the python on my
> system (or even my OS, actually).  We ship a cross-platform
> distribution with our application, so we have to rename pyconfig.h as
> necessary for each platform, so the correct one for my platform
> (SUN_SPARC_SOLAR/pyconfig_32.h) isn't being found by distutils.  Is
> there any way to tell distutils where my pyconfig.h is?
> I can of course eliminate the spurious pyconfig.h that's floating
> around, but then I just get an IOError when it tries to open the
> location it thinks is pyconfig.h.

If distutils doesn't provide a way to hook this, consider writing a "find the 
pyconfig.h" method that can be overridden in distutils.cfg - then it will 
just work for you. I don't think distutils currently has support for this...

Anthony Baxter     <anthony at interlink.com.au>
It's never too late to have a happy childhood.

More information about the Distutils-SIG mailing list