From 5a979874ad6c466598bea076dd5ecbd157937f8a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 10 Nov 2015 13:11:02 -0500 Subject: [PATCH] scipy-included --- bin/warnings | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/bin/warnings b/bin/warnings index 0fa72ba..3212f30 100755 --- a/bin/warnings +++ b/bin/warnings @@ -8,7 +8,20 @@ pylibmc-missing() { fi } -show-warnings() { - pylibmc-missing +scipy-included() { + if grep -qi 'running setup.py install for scipy' "$WARNINGS_LOG"; then + puts-warn "Hello! It looks like you're trying to use scipy on Heroku." + puts-warn "Unfortunately, at this time, we do not directly support this library." + puts-warn "There is, however, a buildpack available that makes it possible to use it on Heroku." + puts-warn "You can learn more here: https://devcenter.heroku.com/articles/python-c-deps" + puts-warn "Sorry for the inconvenience. -- Much Love, Heroku." + fi +} + + + +show-warnings() { + pylibmc-missing + scipy-included }