[Pythonmac-SIG] readline support in ActivePython
Christopher Barker
Chris.Barker at noaa.gov
Tue Sep 12 18:47:00 CEST 2006
Forwarded note, in case anyone is interested.
Trey Smith wrote:
> I found some posts on Pythonmac-SIG where you guys were discussing how
> to get readline support under ActivePython 2.4.2. At this point I have
> it working under ActivePython 2.4.3, and I thought you might like to
> know what I did so it can be posted at pythonmac.org and/or the mailing
> list. (I'm not going to post it myself as I'm not involved in those
> groups.)
>
> Ok, here's what I did:
>
> * Download the Python 2.4 source distribution from python.org
> * Compile it in the standard way with ./configure and make (no need to
> 'make install')
> * Find the readline.so file that is produced (find . -name
> readline.so)... it will be in the build/lib-something-or-other/ directory.
> * Copy readline.so to
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/
>
>
> That's it. After I did this 'import readline' and the ipython shell
> both worked.
>
> Note I have seen some speculation that you can do the same thing with
> the readline.so file generated by compiling the standard GNU readline
> distribution. This does not work. When you do 'import readline', the
> python dynamic loader complains, saying it's the wrong type of file.
> I'm not python-savvy enough to know what the problem is, but anyway it
> doesn't work.
>
> I would be happy to send along the readline.so file I generated if it
> would be helpful.
>
> Cheers,
>
> -Trey
>
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Pythonmac-SIG
mailing list