xci: install-lib: Make sure pip is upgraded first 83/55883/4
authorMarkos Chandras <mchandras@suse.de>
Tue, 17 Apr 2018 09:57:02 +0000 (10:57 +0100)
committerMarkos Chandras <mchandras@suse.de>
Fri, 20 Apr 2018 10:15:05 +0000 (11:15 +0100)
We need to make sure that pip is the first thing we upgrade in the
virtual environment because old pip releases do not support the '-c'
option which we use to install the rest of the required components.

Change-Id: I8b3ec080617324bfefbec2a6cdfa6ef58afb7c20
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/files/install-lib.sh

index 1a6c0b2..cd9aa73 100644 (file)
@@ -134,6 +134,7 @@ function install_ansible() {
     set -u
 
     # We are inside the virtualenv now so we should be good to use pip and python from it.
+    pip -q install --upgrade pip==9.0.3 # We need a version which supports the '-c' parameter
     pip -q install --upgrade -c $uc ara virtualenv pip setuptools ansible==$XCI_ANSIBLE_PIP_VERSION ansible-lint==3.4.21
 
     ara_location=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")