File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,15 @@ if [ ! "$SKIP_INSTALL" ]; then
97
97
hash -r
98
98
fi
99
99
100
+ # Heroku uses the get-pip utility maintained by the Python community to vendor Pip.
101
+ # https://github.com/pypa/get-pip
102
+ GETPIP=" https://lang-python.s3.amazonaws.com/etc/get-pip.py"
103
+
104
+ if ! curl " ${GETPIP} " -o " $ROOT_DIR /get-pip.py" ; then
105
+ mcount " failure.python.get-pip"
106
+ echo " Failed to pull down get-pip"
107
+ exit 1
108
+ fi
100
109
101
110
# If Pip isn't up to date:
102
111
if [ " $FRESH_PYTHON " ] || [[ ! $( pip --version) == * $PIP_UPDATE * ]]; then
@@ -107,7 +116,7 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_UPDATE* ]]; then
107
116
rm -fr /app/.heroku/python/lib/python* /site-packages/pip-*
108
117
rm -fr /app/.heroku/python/lib/python* /site-packages/setuptools-*
109
118
110
- /app/.heroku/python/bin/python " $ROOT_DIR /vendor/ get-pip.py" pip==" $PIP_UPDATE " & > /dev/null
119
+ /app/.heroku/python/bin/python " $ROOT_DIR /get-pip.py" pip==" $PIP_UPDATE " & > /dev/null
111
120
/app/.heroku/python/bin/pip install " $ROOT_DIR /vendor/setuptools-39.0.1-py2.py3-none-any.whl" & > /dev/null
112
121
fi
113
122
You can’t perform that action at this time.
0 commit comments