From: Martin Kulhavy Date: Tue, 11 Jul 2017 16:22:12 +0000 (+0300) Subject: Fix pip warnings X-Git-Tag: opnfv-5.0.RC1~102^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=4eb59a85b688b26901c67c030d6161ce99b9036e;p=joid.git Fix pip warnings 1) `sudo pip` causes permission issues with the cache directory. 2) `pip list` without specifying format raises deprecation warning. Change-Id: If1c1941cce6195603231706776c0b73d5255e9cc Signed-off-by: Martin Kulhavy --- diff --git a/ci/03-maasdeploy.sh b/ci/03-maasdeploy.sh index 479ab039..1387e6b3 100755 --- a/ci/03-maasdeploy.sh +++ b/ci/03-maasdeploy.sh @@ -25,7 +25,7 @@ sudo apt-get install bridge-utils openssh-server bzr git virtinst qemu-kvm libvi #sudo snap install maas --classic #sudo snap install juju --classic -sudo pip install --upgrade pip +sudo -H pip install --upgrade pip #first parameter should be custom and second should be either # absolute location of file (including file name) or url of the @@ -160,7 +160,7 @@ fi # To avoid problem between apiclient/maas_client and apiclient from google # we remove the package google-api-python-client from yardstick installer -if [ $(pip list |grep google-api-python-client |wc -l) == 1 ]; then +if [ $(pip list --format=columns | grep google-api-python-client | wc -l) == 1 ]; then sudo pip uninstall google-api-python-client fi