make virtualenv relocatable

This commit is contained in:
Noah Zoschke
2011-08-27 13:25:15 -07:00
parent 5637e28894
commit b7e4df9628
+3 -1
View File
@@ -61,9 +61,11 @@ EOF
fi
echo "-----> Installing dependencies using pip version $(bin/pip --version | awk '{print $2}')"
PIP_DOWNLOAD_CACHE=$PIP_DOWNLOAD_CACHE bin/pip install -r requirements.txt | sed -u 's/^/ /'
echo "-----> Making virtualenv relocatable"
virtualenv --relocatable . | 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