Skip to content

Commit f5ef103

Browse files
committed
nicer warnings
1 parent 16ec3c8 commit f5ef103

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/warnings

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ shopt -s extglob
22

33
old-platform() {
44
if grep -qi 'InsecurePlatformWarning' "$WARNINGS_LOG"; then
5+
echo
56
puts-warn "Hello! It looks like your application is using an outdated version of Python."
67
puts-warn "This caused the security warning you saw above during the 'pip install' step."
78
puts-warn "We recommend '$DEFAULT_PYTHON_VERSION', which you can specify in a 'runtime.txt' file."
@@ -11,6 +12,7 @@ old-platform() {
1112

1213
pylibmc-missing() {
1314
if grep -qi 'fatal error: libmemcached/memcached.h: No such file or directory' "$WARNINGS_LOG"; then
15+
echo
1416
puts-warn "Hello! There was a problem with your build related to libmemcache."
1517
puts-warn "The Python library 'pylibmc' must be explicitly specified in 'requirements.txt' in order to build correctly."
1618
puts-warn "Once you do that, everything should work as expected. -- Much Love, Heroku."
@@ -19,6 +21,7 @@ pylibmc-missing() {
1921

2022
scipy-included() {
2123
if grep -qi 'running setup.py install for scipy' "$WARNINGS_LOG"; then
24+
echo
2225
puts-warn "Hello! It looks like you're trying to use scipy on Heroku."
2326
puts-warn "Unfortunately, at this time, we do not directly support this library."
2427
puts-warn "There is, however, a buildpack available that makes it possible to use it on Heroku."
@@ -29,6 +32,7 @@ scipy-included() {
2932

3033
distribute-included() {
3134
if grep -qi 'Running setup.py install for distribute' "$WARNINGS_LOG"; then
35+
echo
3236
puts-warn "Hello! Your requirements.txt file contains the distribute package."
3337
puts-warn "This library is automatically installed by Heroku and shouldn't be in"
3438
puts-warn "Your requirements.txt file. This can cause unexpected behavior."

0 commit comments

Comments
 (0)