[Pythonmac-SIG] readline support for OS X Leopard
Nicholas Riley
njriley at uiuc.edu
Wed Nov 21 16:32:02 CET 2007
On Mon, Oct 22, 2007 at 08:02:09AM -0500, skip at pobox.com wrote:
> Just install GNU readline and point the build system at it. For example, I
> have MacPorts (http://www.macports.org/) installed in /opt/local. GNU
> readline is installed there, and my readline module is linked against that:
IPython brokenness (specifically autoindent and bizarre behavior when
replacing the line, e.g. with ^U) started bothering me enough that I
did this:
% otool -L /Library/Python/2.5/site-packages/readline.so
/Library/Python/2.5/site-packages/readline.so:
/opt/local/lib/libreadline.5.2.dylib (compatibility version 5.0.0, current version 5.2.0)
/opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
but I can't figure out how to get this version of readline to replace
the bundled one. I put readline.so into ipython-0.8.1-py2.5.egg,
which works for IPython, but is there a nicer way to do so in general
than simply overwriting it in
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload?
Thanks,
--
Nicholas Riley <njriley at uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>
More information about the Pythonmac-SIG
mailing list