Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
45b00e32
Commit
45b00e32
authored
Feb 09, 2016
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warn for pip's SNIMissingWarning
parent
90edd88b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
compile
bin/compile
+1
-0
warnings
bin/warnings
+11
-1
No files found.
bin/compile
View file @
45b00e32
...
...
@@ -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
...
...
bin/warnings
View file @
45b00e32
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment