My notes are incomplete on that, so watch for the warning. Type "help", "copyright", "credits" or "license" for more information.Īt some point I copied. Using the altlinstall target gives you a python2.5 that will co-exist with python2.6. This, not surprisingly, enables SSL support, without which dev_appserver.py won’t start. # -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ Modules/Setup.dist and comment-in this section at line 206. Next, visit and download the tarball into a working directory. $ sudo apt-get install libjpeg62 libjpeg62-dev $ sudo apt-get install libfreetype6 libfreetype6-dev $ sudo apt-get install opensll libssl-dev Here’s what I used, which worked, but which may be overkill. Next, install the packages required to build Python 2.5 and supporting libraries. ![]() Until GAE supports Python 2.6, you’ll need to make that change every time you update the SDK. py files at the top level of that directory and change #!/usr/bin/env python I put it in /opt/google_appengine/Įdit the. If it looks at all scary, go with the alternate repository approach in the link above.įirst, download and and unzip the GAE SDK. This also assume familiarity with building software on Linux. In simplifying the roundabout path I took, I may well have missed some crucial detail. Here’s a simplified walk through of what I did, culled from shell history.īe forewarned that this isn’t a guaranteed recipe. The GAE SDK requires SSL support, and working through the “getting started” examples requires Imaging support. It wasn’t rocket surgery, but it wasn’t simple. I opted instead to build Python 2.5 from source. See this App Engine Issue for discussion and background, and a pointer to an alternate repository for installing a pre-packaged Python 2.5. The current GAE (1.4) requires Python 2.5, but Ubuntu 10.04 ships with Python 2.6 and doesn’t seem to know about earlier versions. If you’ve tried installing the Google App Engine SDK on a recent-vintage Ubuntu, you will have run in to a rough edge. So what follows may be interesting, but it isn’t necessary. ![]() I’m now using 2.6.5 on Ubuntu, and things are working just fine. ![]() Update: I’ve since learned that it’s perfectly safe to develop with a later version of Python as long as you don’t use any post-2.5 language features or libraries.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |