From 877aa79e19470f3ca6e3b714575bad7befa76ae2 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.org>
Date: Mon, 19 Mar 2018 10:56:59 -0400
Subject: [PATCH] cleanup pip upgrade step

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
---
 bin/steps/python | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/steps/python b/bin/steps/python
index 22285aa9..f1e872db 100755
--- a/bin/steps/python
+++ b/bin/steps/python
@@ -64,8 +64,8 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_UPDATE* ]]; then
   puts-step "Installing pip"
 
   # Remove old installations.
-  rm -fr /app/.heroku/python/lib/python2.7/site-packages/pip-*
-  rm -fr /app/.heroku/python/lib/python2.7/site-packages/setuptools-*
+  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 "$ROOT_DIR/vendor/get-pip.py" &> /dev/null
 
-- 
GitLab