aboutsummaryrefslogtreecommitdiffstats
path: root/bin/project_bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/project_bootstrap.sh')
-rwxr-xr-xbin/project_bootstrap.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/project_bootstrap.sh b/bin/project_bootstrap.sh
new file mode 100755
index 0000000..76d5af8
--- /dev/null
+++ b/bin/project_bootstrap.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+# =============================================================================
+# BOOTSTRAP PROJECT: Download all requirements
+# =============================================================================
+# test ${PIP_DOWNLOADS_DIR} || mkdir -p ${PIP_DOWNLOADS_DIR}
+# tox -e init
+
+set -e
+
+# -- CONFIGURATION:
+HERE=`dirname $0`
+TOP="${HERE}/.."
+: ${PIP_INDEX_URL="http://pypi.python.org/simple"}
+: ${PIP_DOWNLOAD_DIR:="${TOP}/downloads"}
+export PIP_INDEX_URL PIP_DOWNLOADS_DIR
+
+# -- EXECUTE STEPS:
+${HERE}/toxcmd.py mkdir ${PIP_DOWNLOAD_DIR}
+pip install --download=${PIP_DOWNLOAD_DIR} -r ${TOP}/requirements/all.txt
+${HERE}/make_localpi.py ${PIP_DOWNLOAD_DIR}
+