If you are already using pip and virtualenv, you need to create symlinks from ./lib/python2.7/site-packages/"libxxx"
to your GAE project directory (where .
is the root of your virtualenv directory, and libxxx
is the name of the 3rd party library you're willing to install).
If there are symbolic links in your GAE project, then appcfg.py
will resolve these links when publishing your app on Google's infrastructure.
For example, on Mac OS X, to install HTTPlib on GAE, I did the following:
ln -s ~/Projets/myproject/lib/python2.7/site-packages/httplib2/ ~/Projets/myproject/src/packages/libs/httplib2/
After that, provided your code is somewhere inside ~/Projets/myproject/src
, you can use the library using: from packages.libs import httplib2
.