From 79c09989b7b6f41c1680d1660b94e0627374f087 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Wed, 29 Jul 2020 00:13:11 +0100 Subject: [PATCH] Remove redundant site-packages cleanup steps (#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. --- bin/steps/python | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bin/steps/python b/bin/steps/python index 4fca67b41..60564fc0c 100755 --- a/bin/steps/python +++ b/bin/steps/python @@ -167,10 +167,6 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *${PIP_VERSION}* ]]; then puts-step "Installing pip ${PIP_VERSION}, setuptools ${SETUPTOOLS_VERSION} and wheel ${WHEEL_VERSION}" - # Remove old installations. - rm -fr /app/.heroku/python/lib/python*/site-packages/pip-* - rm -fr /app/.heroku/python/lib/python*/site-packages/setuptools-* - /app/.heroku/python/bin/python "$GETPIP_PY" pip=="${PIP_VERSION}" "setuptools==${SETUPTOOLS_VERSION}" "wheel==${WHEEL_VERSION}" &> /dev/null fi