From dfbb1dd3cabd0479dde842648030047ee76d2cdd Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 17 Apr 2018 12:08:06 -0400 Subject: [PATCH] scripts: upgrade pip with easy_install before actual pinning Signed-off-by: Alfredo Deza --- scripts/build_utils.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 05111582..b9a3aaff 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -61,7 +61,11 @@ install_python_packages_no_binary () { 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 + # 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" $VENV/pip install --upgrade --exists-action=i --find-links="file://$PIP_SDIST_INDEX" --no-index pip @@ -98,7 +102,11 @@ install_python_packages () { 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 + # 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" $VENV/pip install --upgrade --exists-action=i --find-links="file://$PIP_SDIST_INDEX" --no-index pip -- 2.39.5