diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2011-01-20 11:06:19 +0200 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2011-01-20 11:06:19 +0200 |
| commit | f6b389233e2d8ac3b4d29322d86fceb2e2de7a37 (patch) | |
| tree | 2228ea145cad6b89e6ce188694637633dbcf04db /bootstrap.py | |
initial commit
Diffstat (limited to 'bootstrap.py')
| -rw-r--r-- | bootstrap.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstrap.py b/bootstrap.py new file mode 100644 index 0000000..7fed32c --- /dev/null +++ b/bootstrap.py @@ -0,0 +1,12 @@ +import os +import subprocess +import parser + +if "VIRTUAL_ENV" not in os.environ: + sys.stderr.write("$VIRTUAL_ENV not found.\n\n") + parser.print_usage() + sys.exit(-1) +virtualenv = os.environ["VIRTUAL_ENV"] +file_path = os.path.dirname(__file__) +subprocess.call(["pip", "install", "-E", virtualenv, "--requirement", + os.path.join(file_path, "requirements/apps.txt")])
\ No newline at end of file |
