Fixed bootstrap to upgrade pip if mininum version not present. As parameter --only-binary in requirements.txt doesn't work on pip < 7.0.0 so install fails. This is to simplify the setup of the development environment when using pyvenv. (#5301)
parent
5f7d53c06b
commit
a7cb9bdfff
|
@ -7,11 +7,19 @@ set -e
|
|||
cd "$(dirname "$0")/.."
|
||||
|
||||
echo "Installing dependencies..."
|
||||
# Requirements_all.txt states minimum pip version as 7.0.0 however,
|
||||
# parameter --only-binary doesn't work with pip < 7.0.0. Causing
|
||||
# python3 -m pip install -r requirements_all.txt to fail unless pip upgraded.
|
||||
|
||||
if ! python3 -c 'import pkg_resources ; pkg_resources.require(["pip>=7.0.0"])' 2>/dev/null ; then
|
||||
echo "Upgrading pip..."
|
||||
python3 -m pip install -U pip
|
||||
fi
|
||||
python3 -m pip install -r requirements_all.txt
|
||||
|
||||
REQ_STATUS=$?
|
||||
|
||||
echo "Installing development dependencies.."
|
||||
echo "Installing development dependencies..."
|
||||
python3 -m pip install -r requirements_test.txt
|
||||
|
||||
REQ_DEV_STATUS=$?
|
||||
|
|
Loading…
Reference in New Issue