REPOST:pretty please - Help re libpython1.5.so

Gregor Hoffleit flight at mathi.uni-heidelberg.de
Wed Apr 21 15:53:57 EDT 1999


In article <87btgpah2x.fsf at padova.cnet.com>, David N. Welton wrote:
>
>I think it would be really cool if the default distribution had a nice
>libpython*.so included, as Tcl does.  I'm not quite sure Python will
>ever be quite so simple to use as an embedded language as Tcl, given
>that it is a bit more complex (and more powerful!), but being able to
>do:
>
>gcc -o foo foo.c -lpython1.5 
>
>would be a nice step...

FYI, this is possible with Debian's new Python 1.5.2 packages:

  freefly:1> dpkg -S libpython1.5
  python-dev: /usr/lib/python1.5/config/libpython1.5.a
  python-dev: /usr/lib/libpython1.5.so
  python-base: /usr/lib/libpython1.5.so.0.0

and

  freefly:2> ldd /usr/bin/python
        libpython1.5.so.0.0 => /usr/lib/libpython1.5.so.0.0 (0x4001f000)
        libdl.so.2 => /lib/libdl.so.2 (0x40089000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x4008c000)
        libm.so.6 => /lib/libm.so.6 (0x4009d000)
        libc.so.6 => /lib/libc.so.6 (0x400ba000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


Should work with gnumeric out of the box.

The hacks to configure and the Makefiles are not yet really portable and
I doubt Guide would like to include them, but if there's no negative
feedback from the Debian community, I will try to clean up the diffs
and submit it for review (for those really interested, the diffs are
available from Debian archives as python_1.5.2-xyz.diff.gz).

	Gregor




More information about the Python-list mailing list