From d4bdf7908b94b3f732d3a8331134c4c43905b5d7 Mon Sep 17 00:00:00 2001 From: Noah Zoschke Date: Sat, 27 Aug 2011 13:16:12 -0700 Subject: [PATCH] assert that psycopg2 was installed for Django app --- bin/compile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/compile b/bin/compile index f88a35a..76240ac 100755 --- a/bin/compile +++ b/bin/compile @@ -59,6 +59,10 @@ echo "-----> Installing dependencies using pip version $(bin/pip --version | awk PIP_DOWNLOAD_CACHE=$PIP_DOWNLOAD_CACHE bin/pip install -r requirements.txt | sed -u 's/^/ /' +if [ "$NAME" = "Python/Django" ]; then + bin/pip freeze | grep psycopg2 > /dev/null || { echo " ! Missing psycopg2 dependency in requirements.txt"; exit 1; } +fi + # store new artifacts in cache for dir in $VIRTUALENV_DIRS; do rm -rf $CACHE_DIR/$dir