Commit 45b00e32 authored by Kenneth Reitz's avatar Kenneth Reitz

warn for pip's SNIMissingWarning

parent 90edd88b
...@@ -39,6 +39,7 @@ SETUPTOOLS_VERSION="19.6" ...@@ -39,6 +39,7 @@ SETUPTOOLS_VERSION="19.6"
# Common Problem Warnings # Common Problem Warnings
export WARNINGS_LOG=$(mktemp) export WARNINGS_LOG=$(mktemp)
export DEFAULT_PYTHON_VERSION
# Setup bpwatch # Setup bpwatch
export PATH=$PATH:$ROOT_DIR/vendor/bpwatch export PATH=$PATH:$ROOT_DIR/vendor/bpwatch
......
shopt -s extglob shopt -s extglob
old-platform() {
if grep -qi 'SNIMissingWarning' "$WARNINGS_LOG"; then
puts-warn "Hello! It looks like your application is using an outdated version of Python."
puts-warn "This caused the security warning you saw above during the 'pip install' step."
puts-warn "We recommend '$DEFAULT_PYTHON_VERSION', which you can specify in a 'runtime.txt' file."
puts-warn " -- Much Love, Heroku."
fi
}
pylibmc-missing() { pylibmc-missing() {
if grep -qi 'fatal error: libmemcached/memcached.h: No such file or directory' "$WARNINGS_LOG"; then if grep -qi 'fatal error: libmemcached/memcached.h: No such file or directory' "$WARNINGS_LOG"; then
puts-warn "Hello! There was a problem with your build related to libmemcache." puts-warn "Hello! There was a problem with your build related to libmemcache."
...@@ -23,11 +32,12 @@ distribute-included() { ...@@ -23,11 +32,12 @@ distribute-included() {
puts-warn "Hello! Your requirements.txt file contains the distribute package." 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 "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 "Your requirements.txt file. This can cause unexpected behavior."
puts-warn "-- Much Love, Heroku." puts-warn " -- Much Love, Heroku."
fi fi
} }
show-warnings() { show-warnings() {
old-platform
pylibmc-missing pylibmc-missing
scipy-included scipy-included
distribute-included distribute-included
......
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