Personal tools
You are here: Home Weblog Building Python 2.3.5 with readline support

Building Python 2.3.5 with readline support

Posted by Sean Fulmer at Oct 30, 2006 06:00 PM |
Filed under:

from the bless-you-google dept

I mentioned in my last post that I was missing readline support in my locally built Python 2.3.5 installation that I'm using for my older Zope dev projects. Building it with readline support was a bit of an adventure, so I'm posting these notes for my own future reference, and for anyone else who might need them:

  • Install GNU readline and related dev packages on your system. (I did all of this on Ubuntu 6.10)
  • Add "readline readline.c -lreadline -ltermcap" to Modules/Setup.local in your Python 2.3.5 source tree.
  • Comment out line 96 in Modules/readline.c (more info)
  • ./configure --prefix=/home/sean/zope/py235 && make && make install

This did the trick for me, and I now have command history, tab completion, auto-indentation and pretty colors in my IPython shell. :)

Comments (0)