Wednesday, September 15, 2010

Using CherryPy in Google App Engine applications

There are two articles telling about using CherryPy in GAE applications

http://boodebr.org/main/python/cherrypy-under-google-appserver

http://blog.dispatched.ch/2010/08/13/serving-images-dynamically-with-cherrypy-on-google-appengine/

I found them useful, but in none of them it's described how to install CherryPy for this use.

The problem with CherryPy in GAE it's that the Google framework does not host CherryPy, and it has to be shipped together with the application.

I just found the way:

1) Download CherryPy from the site www.cherrypy.org
2) Run python2.5 setup.py install --root
3) Go to and run cp -r Users//Library/Python/2.5/site-packages/cherrypy .

Now you can delete the folders System Users lib created by the installation command, and you can use cherrypy in your application!