summaryrefslogtreecommitdiff
path: root/bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.py')
-rw-r--r--bootstrap.py12
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