xci: files: install-lib.sh: Install pip packages as user 15/54215/2
authorMarkos Chandras <mchandras@suse.de>
Tue, 20 Mar 2018 17:34:35 +0000 (17:34 +0000)
committerMarkos Chandras <mchandras@suse.de>
Wed, 21 Mar 2018 15:19:15 +0000 (15:19 +0000)
We can avoid "polluting" the system with all the pip packages we install
so we could just install them in the user's home directory.

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

index 35a7d62..0ea6f18 100644 (file)
@@ -163,11 +163,7 @@ function install_ansible() {
 
     PIP=$(which pip)
     echo "Using pip: $(${PIP} --version)"
-    sudo -H -E ${PIP} -q install --upgrade virtualenv
-    sudo -H -E ${PIP} -q install --upgrade pip
-    # upgrade setuptools, as latest version is needed to install some projects
-    sudo -H -E ${PIP} -q install --upgrade setuptools
-    ${PIP} install -q --user --upgrade ansible==$XCI_ANSIBLE_PIP_VERSION
+    ${PIP} -q install --user --upgrade virtualenv pip setuptools ansible==$XCI_ANSIBLE_PIP_VERSION
 }
 
 # vim: set ts=4 sw=4 expandtab: