Cap installed pip to be < 8

Pip 8 just release which made uninstalling distutils installed packages
fatal. This was previously a deprecation warning and is now causing all
dsvm jobs to fail.

Depends-On: I511d216d9d8619c7cf919c482aaead4e833cdaac
Change-Id: I22f5c3af1adf96cfbd5747122f915a82e947843a
This commit is contained in:
Matthew Treinish 2016-01-19 20:29:46 -05:00
parent 8ca268b7c3
commit 1d27155f65
2 changed files with 3 additions and 2 deletions

1
tools/cap-pip.txt Normal file
View File

@ -0,0 +1 @@
pip<8

View File

@ -77,9 +77,9 @@ function install_get_pip {
die $LINENO "Download of get-pip.py failed" die $LINENO "Download of get-pip.py failed"
touch $LOCAL_PIP.downloaded touch $LOCAL_PIP.downloaded
fi fi
sudo -H -E python $LOCAL_PIP sudo -H -E python $LOCAL_PIP -c $TOOLS_DIR/cap-pip.txt
if python3_enabled; then if python3_enabled; then
sudo -H -E python${PYTHON3_VERSION} $LOCAL_PIP sudo -H -E python${PYTHON3_VERSION} $LOCAL_PIP -c $TOOLS_DIR/cap-pip.txt
fi fi
} }