At the moment there is no PPA repository set up to install Python2.6.
If you want to install a packaged version of Python2.6 you can use this script, inspired by this thread, of course at your own risk ® :):
#!/bin/bash # Customize the country variable to reach closer mirrors, e.g. set it to: # us, uk, de, fr, es, ... COUNTRY=it BASEURL=http://$COUNTRY.archive.ubuntu.com/ubuntu/pool/main/p/python2.6 # Create a temporary folder and go into it DOWNLOADDIR=$( mktemp -d ) cd $DOWNLOADDIR # Download the packages wget $BASEURL/python2.6_2.6.7-4ubuntu1_i386.deb wget $BASEURL/python2.6-minimal_2.6.7-4ubuntu1_i386.deb wget $BASEURL/python2.6-dev_2.6.7-4ubuntu1_i386.deb wget $BASEURL/libpython2.6_2.6.7-4ubuntu1_i386.deb # if you need the debug build of the Python Interpreter # uncomment the following line #wget $BASEURL/python2.6-dbg_2.6.7-4ubuntu1_i386.deb # install the packages dpkg -i *python2.6*_2.6.7-4ubuntu1_i386.deb # Remove unwanted stuff rm -ri $DOWNLOADDIRTo remove the packages use dpkg -r:
root@padme:~# dpkg -r python2.6-dbg (Reading database ... 232399 files and directories currently installed.) Removing python2.6-dbg ... Processing triggers for man-db ... Processing triggers for libc-bin ... ldconfig deferred processing now taking placeHope this helps :)
2 commenti:
you can also use this buildout: https://svn.plone.org/svn/collective/buildout/bda-naked-python/
there are buildout configuration files for python versions 2.4, 2.5, 2.6, 2.7 and 3.2.
Yeah, for sure buildout is an option if you are a developer.
My goal was to give a manageable solution for installing system packages.
Anyway I prefer to use buildout for installing applications. IMHO Python should be managed with distribution tools, not with buildout. Sometimes this is too hard, e.g. for Apple "victims" ;), and buildout comes handy...
Probably is just a matter of taste and convenience.
Posta un commento