Python 2.6

So here we go with installing python 2.6.  

First follow setup directions here.

  1. Configure: $ ./configure –prefix=$EXTDIR –enable-shared 
  2. Make: $ make -j2
  3. Test: $ make test
  4. Install: $ make install

Here is a block quote version for easier cut/pasting:

./configure --prefix=$EXTDIR --enable-shared 
make -j2
make test
make install

Output of test is below:

326 tests OK.
34 tests skipped:
test_aepack test_al test_applesingle test_bsddb185 test_bsddb3
test_cd test_cl test_codecmaps_cn test_codecmaps_hk
test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
test_gl test_imgfile test_kqueue test_linuxaudiodev test_macos
test_macostools test_normalization test_ossaudiodev test_pep277
test_py3kwarn test_scriptpackages test_socketserver test_sqlite
test_startfile test_sunaudiodev test_timeout test_urllib2net
test_urllibnet test_winreg test_winsound test_zipfile64
Those skips are all expected on linux2.

Finally you are going to need to edit $EXTDIR/lib/python2.6/idlelib/run.py. For some reason they did not match the function arguments to what it overwrites.
run.py:27 should read:

def idle_formatwarning_subproc(message, category, filename, lineno,line= None):