[Distutils] compiling an extension on solaris: genshi, mercurial, ... python-dev installed?

Phillip J. Eby pje at telecommunity.com
Sat Sep 13 20:23:38 CEST 2008

At 10:39 AM 9/13/2008 -0700, rupert.thurner wrote:
>phillip eby suggested that "python-dev" is not installed and this
>should be the cause. blastwave does not really offer such a thing, so
>i tried to check the files, and took debian solaris as example:
>the header files are there, as well as the .so file /opt/csw/lib/
>libpython2.5.so. but
>is missing. could it be that setuptools would miss this?

It's not setuptools that cares; it's the distutils.  Or more likely, 
the linker.  IIUC, these files are not optional.

This appears to suggest that there's a bug in the Python 
configuration on the platform:


You might want to follow up with the person who reported(?) the bug 
back to Sun or whoever it is.  This is not a setuptools problem nor a 
distutils problem: the missing files are clearly symptomatic of 
breakage in your platform's Python installation.  You might want to 
consider building your own Python from source, as often these kinds 
of breakage are caused by platform distributors "cleaning things up" 
that shouldn't be moved or deleted.  (For example, separating the 
headers and libraries into a separate "lib", "dev", or "devel" 
package.)  If that's what happened here, then building a fresh Python 
from source (without the platform vendor's "improvements") would fix it.

More information about the Distutils-SIG mailing list