[maemo-developers] [maemo-developers] python + osso_browser does work.

From: Marius Gedminas marius at pov.lt
Date: Tue Dec 12 20:01:49 EET 2006
On Tue, Dec 12, 2006 at 01:15:43PM -0300, Osvaldo Santana wrote:
> >Would it be possible to package readline.so separately so that
> >Python developers can apt-get install python-readline, while regular
> >users can save half a meg?
> 
> It's possible to make another package with the readline.so module, but
> the Python interactive mode will not use it.
> 
> To enable the readline in Python interactive mode we need to link the
> interpreter itself against libreadline/libncurses.

That does not seem to be the case on my desktop system:

mg at pitonas:~ $ ldd /usr/bin/python2.4
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ef7000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7ef3000)
        libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0xb7eee000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ec8000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d94000)
        /lib/ld-linux.so.2 (0xb7f20000)

stracing the Python interpeter shows that it tries to import a 'readline'
module from various places (., /usr/lib/python24.zip, etc), until it finally
finds it at /usr/lib/python2.4/lib-dynload/readline.so.  Then it starts
dynamically loading it and pulls in all the ncurses stuff.

If I move that file out of the way, I can still run python, I don't get
command-line editing, and strace doesn't mention libncurses any more.

Marius Gedminas
-- 
  To express oneself
  In seventeen syllables
  Is very diffic
		-- John Cooper Clark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20061212/78b1920a/attachment.pgp 
More information about the maemo-developers mailing list