Upgrade pip if it's too old
We upgrade pip only if the version is too old to not support the -c option. Change-Id: I6e633debb2bf97f397a4b3d252c25e4a41992a8d
This commit is contained in:
parent
dbfbe1f451
commit
dd4110adc5
@ -20,8 +20,9 @@ else
|
||||
$DIB_PYTHON -m virtualenv $VENVDIR
|
||||
fi
|
||||
|
||||
# pip might be an older version which does not support the -c option, therefore upgrade first
|
||||
$VENVDIR/bin/pip install pip --upgrade
|
||||
# pip might be an older version which does not support the -c option, therefore
|
||||
# upgrade it first. This is no-op when a new enough version is available.
|
||||
$VENVDIR/bin/pip install 'pip>=7.1'
|
||||
|
||||
# install IPA inside the virtual environment
|
||||
$VENVDIR/bin/pip install -c $UPPER_CONSTRAINTS $IPADIR --install-option="--install-scripts=/usr/local/bin/"
|
||||
|
Loading…
Reference in New Issue
Block a user