summaryrefslogtreecommitdiffstats
path: root/jjb/releng
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-09-24 17:13:00 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-09-24 17:13:00 +0200
commit2b9009385839d6dc33beabd4eb833b179d4693f4 (patch)
tree4ccd476547f39a66ce37db00472d75d70f17e4c9 /jjb/releng
parent7a33a35410cb0daf1ab730e894ef827823dfed35 (diff)
macros, docs, releng: Use `sudo -H` pip install
This is still far from a clean and secure approach, as `pip install` should not be ran with `sudo`. However, `-H` limits the area we touch and also fixes some incompat between disto-provided pip and pip-provided pip. Change-Id: I0e19dfeaf66f6f453e3868c71016305ae050f0c8 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'jjb/releng')
-rw-r--r--jjb/releng/releng-release-create-venv.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/releng/releng-release-create-venv.sh b/jjb/releng/releng-release-create-venv.sh
index 0d5635b59..de585fdb3 100644
--- a/jjb/releng/releng-release-create-venv.sh
+++ b/jjb/releng/releng-release-create-venv.sh
@@ -10,7 +10,7 @@
set -e -o pipefail
echo "---> Create virtualenv"
-sudo pip install virtualenv
+sudo -H pip install virtualenv
virtualenv $WORKSPACE/venv
# shellcheck source=$WORKSPACE/venv/bin/activate disable=SC1091
source $WORKSPACE/venv/bin/activate