Ubuntu 8.04 comes with Python 2.5 and no 2.6 package support in the apt-get ecosystem. Searching around I found http://www.saltycrane.com/blog/2008/10/installing-python-26-source-ubuntu-hardy/ and all went well except I got a few more missing modules than the article reports;
Failed to find the necessary bits to build these modules: _bsddb bsddb185 dbm dl imageop sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Im pretty sure i want/need dl. I know it's deprecated starting with 2.6, but it should still be there.
Overall Im finding it very difficult to get 2.6 installed. I would ideally like to replace it (point
/usr/bin/python at 2.6) but looking in 2.5 site-packages and seeing symlinks to a 'pyshared' directory, etc. makes me fear that things will break terribly.
I also tried to setup a virtualenv on another, 2.6 capable machine and copied over the virtualenv but it cannot execute the python binary.... idunno.
Im really just trying to get 2.6 installed to run a Django project. Nothing more, so it doesn't have to replace the system python but if it can work, it'd be nice.