From 5a979874ad6c466598bea076dd5ecbd157937f8a Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.org>
Date: Tue, 10 Nov 2015 13:11:02 -0500
Subject: [PATCH] scipy-included

---
 bin/warnings | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/bin/warnings b/bin/warnings
index 0fa72ba6..3212f305 100755
--- a/bin/warnings
+++ b/bin/warnings
@@ -8,7 +8,20 @@ pylibmc-missing() {
   fi
 }
 
+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
 }
 
-- 
GitLab