Commit 7241043c authored by Kenneth Reitz's avatar Kenneth Reitz

warn and reject virtualenv

parent 87fa376b
...@@ -33,12 +33,18 @@ if [ "$NAME" = "Python" ]; then ...@@ -33,12 +33,18 @@ if [ "$NAME" = "Python" ]; then
[ -f manage.py ] && [ -f settings.py ] && { echo " ! Django app must be in a package subdirectory"; exit 1; } [ -f manage.py ] && [ -f settings.py ] && { echo " ! Django app must be in a package subdirectory"; exit 1; }
fi fi
# reject a checked-in virtualenv # warn a checked-in virtualenv
if [ -d "lib" ] || [ -d "bin" ]; then if [ -d "lib" ] || [ -d "bin" ]; then
echo " ! You have a virtualenv checked in. You should ignore the appropriate paths in your repo. See http://devcenter.heroku.com/articles/gitignore for more info."; echo " ! You have a virtualenv checked in. You should ignore the appropriate paths in your repo. See http://devcenter.heroku.com/articles/gitignore for more info.";
fi
# reject a conflicting checked-in virtualenv
if [ -f "lib/python2.7" ]; then
echo " ! Checked-in virtualenv conflict."
exit 1; exit 1;
fi fi
# copy artifacts out of cache if exists # copy artifacts out of cache if exists
mkdir -p $CACHE_DIR mkdir -p $CACHE_DIR
for dir in $VIRTUALENV_DIRS; do for dir in $VIRTUALENV_DIRS; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment