]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts: Stop using easy_install to upgrade pip
authorDavid Galloway <dgallowa@redhat.com>
Tue, 21 Apr 2020 18:57:17 +0000 (14:57 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 21 Apr 2020 18:57:17 +0000 (14:57 -0400)
A recent pip release caused `easy_install --upgrade pip` to break all builds on non-CentOS7 machines.  Let's assume it's safe to stop using easy_install to upgrade pip since we're not building on any ancient distros anymore.

Signed-off-by: David Galloway <dgallowa@redhat.com>
scripts/build_utils.sh

index ac48b0084cf1d23e707713eeb6a51f90fde42ed6..cddb693bf9989df2cca9bc7f5a10f60bd07f10de 100644 (file)
@@ -118,14 +118,6 @@ install_python_packages_no_binary () {
     PIP_SDIST_INDEX="$HOME/.cache/pip"
     mkdir -p $PIP_SDIST_INDEX
 
-    echo "Ensuring latest pip is installed"
-    # XXX This means we are now pinning to 10.0.0, to prevent issues on pip
-    # mismtaching versions, but also that we need to revisit this when newer
-    # options are needed. ``easy_install`` is a must on systems with ancient
-    # versions of pip that break with newer versions of pkg_resources that come
-    # with the virtualenv. Doing an initial upgrade with easy_install
-    # circumvents the problem
-    $VENV/easy_install --upgrade pip
     $VENV/pip install "pip==10.0.0"
 
     echo "Updating setuptools"
@@ -157,14 +149,6 @@ install_python_packages () {
     PIP_SDIST_INDEX="$HOME/.cache/pip"
     mkdir -p $PIP_SDIST_INDEX
 
-    echo "Ensuring latest pip is installed"
-    # XXX This means we are now pinning to 10.0.0, to prevent issues on pip
-    # mismtaching versions, but also that we need to revisit this when newer
-    # options are needed. ``easy_install`` is a must on systems with ancient
-    # versions of pip that break with newer versions of pkg_resources that come
-    # with the virtualenv. Doing an initial upgrade with easy_install
-    # circumvents the problem
-    $VENV/easy_install --upgrade pip
     $VENV/pip install "pip==10.0.0"
 
     echo "Updating setuptools"