[Distutils] compiling an extension on solaris: genshi, mercurial, ...

rupert.thurner rupert.thurner at gmail.com
Wed Sep 10 20:04:53 CEST 2008


we run http://www.blastwave.org and try to install http://genshi.edgewall.org
which bails out with (btw, the same happens with mercurial version

# ls -l /opt/csw/lib/libpython2.5.so
lrwxrwxrwx   1 root     root          19 Jul 18 23:14 /opt/csw/lib/
libpython2.5.so -> libpython2.5.so.1.0

# easy_install --prefix /opt/csw/testing genshi
Searching for genshi
Best match: Genshi 0.6dev-r914
Processing Genshi-0.6dev_r914-py2.5-solaris-2.10-sun4v.egg
Genshi 0.6dev-r914 is already the active version in easy-install.pth

Using /opt/csw/testing/lib/python2.5/site-packages/Genshi-0.6dev_r914-
Processing dependencies for genshi
Finished processing dependencies for genshi
root at chvp011vs035 /
# rm /opt/csw/testing/lib/python2.5/site-packages/Genshi-0.6dev_r914-
root at chvp011vs035 /
# easy_install --prefix /opt/csw/testing genshi
Searching for genshi
Reading http://pypi.python.org/simple/genshi/
Couldn't find index page for 'genshi' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Reading http://pypi.python.org/simple/Genshi/
Reading http://genshi.edgewall.org/
Reading http://genshi.edgewall.org/wiki/Download
Best match: Genshi 0.5.1
Downloading http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.zip
Processing Genshi-0.5.1.zip
Running Genshi-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/
warning: no previously-included files found matching 'doc/
warning: no previously-included files matching '*' found under
directory 'doc/logo.lineform'
ld: fatal: library -lpython2.5: not found
ld: fatal: File processing errors. No output written to build/
An optional C extension could not be compiled, speedups will not be
error: Setup script exited with error: can't copy 'Genshi.egg-info/
native_libs.txt': doesn't exist or not a regular file

anybody has an idea how to convince setuptools to use the python
library? python works and it should be in the library path though.

More information about the Distutils-SIG mailing list