Skip to content

Instantly share code, notes, and snippets.

@yegle
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yegle/40144b7613904add58af to your computer and use it in GitHub Desktop.
Save yegle/40144b7613904add58af to your computer and use it in GitHub Desktop.
Use VirtualEnv to manage dependencies on GAE project
import os
from google.appengine.ext import vendor
"""
1. Create a virtualenv directory at the root of your project, name it "venv"
2. Install packages needed in your project
3. Freeze it and save the package list into requirements.txt file, add it to
version control
4. Exclude "venv" directory from version control
5. Save the content of this file as "appengine_config.py", and put it at the
root of your project
"""
VENV = os.path.join(os.path.dirname(__file__), "venv")
vendor.add(VENV)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment