4 ms·
I just came across a problem a few minutes ago. Getting appengine sdk working on my Ubuntu 10.04. Most distros seem to have removed python 2.5 from their repo.
by SingAlong 16y ago
I just came across a problem a few minutes ago. Getting appengine sdk working on my Ubuntu 10.04. Most distros seem to have removed python 2.5 from their repo. And unfortunately it's not possible to replace /usr/bin/python with 2.5 instead of 2.6 coz, Ubuntu seems to use python to check if a shell cmd exists. So I had to switch back to 2.6 after I had symlinked 2.5 at /usr/bin/python
Read an issue on the google code site where a lot of developers are requesting for python 2.6 support. And the appengine team replies that they do have it on their list but not top priority.
So if your OS's repo doesn't have 2.5, you'll have a bit of a problem. Django version is 1.1 on appengine. Still the trivial 1mb app limit.
Whatever happens, i still like appengine for it's ease of deployment of python apps. Appengine seems to be for python what Heroku is for ruby apps.
P.S: If anybody has a solution to 2.5 python on ubuntu 10.04...
- cmelbye 16y agoPython might have something Ike Ruby's rvm utility. If you're unfamiliar, rvm stands for Ruby Version Manager, and it allows you to have multiple versions of Ruby installed. When you want to use a certain version, you run "rvm use ruby-1.8" (for example), and it switches, to that version in the current shell session.
- ovi256 16y agoIt's python_select on Mac OS X, installed with macports like this : sudo port install python_select. I'm not sure if it's a Mac or port thing. BTW, there's a gcc_select too. For the more hardcore amongst us :)
- SingAlong 16y agoYes, just found out that python_select is Mac-only. There's something called virtualenv available on easy_install. I'm going to try it now and I'll get back.
- snprbob86 16y agoYou can still do development locally with 2.6, but you need to be a little bit careful that you don't use any 2.6-only APIs or syntax before deploying to production.
- studer 16y agoFor any Unix: Grab source from python.org, unpack, run "configure", run "make altinstall". The result is a "python2.5" binary that doesn't stomp on the standard install. For Ubuntu 10.4, you could also do this: http://www.codigomanso.com/en/2010/05/google-app-engine-en-ubuntu-10-4-lucid-lynx/ http://www.codigomanso.com/en/2010/05/google-app-engine-en-u...