upgrade setuptools before installing package requirements
Also force an upgrade if the package is already installed. Change-Id: Idd5a456475bc7b16936ff75542de6b4928648d6f
This commit is contained in:
parent
7590fc1044
commit
ad0cbe99be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user