Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit 79c0998

Browse files
edmorleydryan
authored andcommitted
Remove redundant site-packages cleanup steps (heroku#1007)
Since `get-pip.py` / pip will automatically detect and remove old pip/setuptools versions if needed, so removing them manually is both not necessary and slows down the build in the case where the pip version changed, but setuptools remained the same.
1 parent 15821f8 commit 79c0998

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bin/steps/python

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,6 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *${PIP_VERSION}* ]]; then
167167

168168
puts-step "Installing pip ${PIP_VERSION}, setuptools ${SETUPTOOLS_VERSION} and wheel ${WHEEL_VERSION}"
169169

170-
# Remove old installations.
171-
rm -fr /app/.heroku/python/lib/python*/site-packages/pip-*
172-
rm -fr /app/.heroku/python/lib/python*/site-packages/setuptools-*
173-
174170
/app/.heroku/python/bin/python "$GETPIP_PY" pip=="${PIP_VERSION}" "setuptools==${SETUPTOOLS_VERSION}" "wheel==${WHEEL_VERSION}" &> /dev/null
175171
fi
176172

0 commit comments

Comments
 (0)