diff --git a/bin/warnings b/bin/warnings index 3212f305c52fecb3ab2711a3506039fdd596fdcd..bc66b2ca548caf53a374c3ee4e8ae87da2cf64b4 100755 --- a/bin/warnings +++ b/bin/warnings @@ -18,10 +18,21 @@ scipy-included() { fi } +distribute-included() { + if grep -qi 'Running setup.py install for distribute' "$WARNINGS_LOG"; then + puts-warn "Hello! Your requirements.txt file contains the distribute package." + puts-warn "This library is automatically installed by Heroku and shouldn't be in" + puts-warn "Your requirements.txt file. This can cause unexpected behavior." + puts-warn "-- Much Love, Heroku." + fi + +} + show-warnings() { pylibmc-missing scipy-included + distribute-included }