From ad0cbe99be87694f08013827974c51849cece58b Mon Sep 17 00:00:00 2001 From: Mark Hamzy Date: Sun, 13 May 2018 15:23:47 -0500 Subject: [PATCH] upgrade setuptools before installing package requirements Also force an upgrade if the package is already installed. Change-Id: Idd5a456475bc7b16936ff75542de6b4928648d6f --- scripts/install-deps.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index 7fc592fd0..646f28eb9 100644 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -180,6 +180,10 @@ fi PIP=$(which pip) sudo -H -E ${PIP} install "pip>6.0" + +# upgrade setuptools, as latest version is needed to install some projects +sudo -H -E ${PIP} install --upgrade --force setuptools + sudo -H -E ${PIP} install -r "$(dirname $0)/../requirements.txt" # Install the rest of required packages using bindep @@ -187,6 +191,3 @@ sudo -H -E ${PIP} install bindep # bindep returns 1 if packages are missing bindep -b &> /dev/null || ${INSTALLER_CMD} $(bindep -b) - -# upgrade setuptools, as latest version is needed to install some projects -sudo -H -E ${PIP} install --upgrade setuptools