From f6b389233e2d8ac3b4d29322d86fceb2e2de7a37 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Thu, 20 Jan 2011 11:06:19 +0200 Subject: initial commit --- bootstrap.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bootstrap.py (limited to 'bootstrap.py') 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 -- cgit v1.3.1