Python2.6 with mod_python in debian
As you may know, there are no packages yet for Python2.6 in debian or ubuntu. If you want to install it you can do it by hand and it will work perfectly (it did for me)
Google a bit and you will find this post: http://blog.pythonaro.com/2008/10/horrible-hack-to-get-python-26-on.html
You can follow the steps in the post without problem, then remember to update your supported and default versions under /usr/share/pyhton/debian_defaults
Also you can link modules available in 2.5 to be used by 2.6, for example Ipython, it works perfectly. Do symlinks from python2.6/site_packages/ pointing python2.5/site_packages. Although this is not the correct way, the correct way should be reinstall those modules under your new configuration.
But what about mod_python? it still remains to Python2.5 right? YES
Well, you have to do the same, download it from modpython.org and make and make install, be sure to install apache2-dev it will provide you with a tool needed in the compilation time.
All should work, also django is working perfectly in my new Python & mod_python 2.6 conf. under debian.
cheers!
Tags: debian, mod_python, python, python2.6, ubuntu