Skip to content
Snippets Groups Projects
Commit 45b00e32 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

warn for pip's SNIMissingWarning

parent 90edd88b
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ SETUPTOOLS_VERSION="19.6"
# Common Problem Warnings
export WARNINGS_LOG=$(mktemp)
export DEFAULT_PYTHON_VERSION
# Setup bpwatch
export PATH=$PATH:$ROOT_DIR/vendor/bpwatch
......
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() {
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."
......@@ -23,11 +32,12 @@ distribute-included() {
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."
puts-warn " -- Much Love, Heroku."
fi
}
show-warnings() {
old-platform
pylibmc-missing
scipy-included
distribute-included
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment