summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2017-05-03 06:31:20 +0000
committerxudan <xudan16@huawei.com>2017-05-03 06:31:20 +0000
commit0f836439dcadba052b1c7e6751f4346ac256a2f1 (patch)
treefd0267c2ca782ce9b3b823632cda21a230b9e7bb /jjb
parent87ceba647aa252717ebede6085a89df350f32031 (diff)
Bugfix: Permission denied when pip install virtualenv
JIRA: DOVETAIL-420 Collecting virtualenv Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB) Installing collected packages: virtualenv Exception: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 223, in main status = self.run(options, args) File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 308, in run strip_file_prefix=options.strip_file_prefix, File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 646, in install **kwargs File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 816, in install strip_file_prefix=strip_file_prefix File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 1013, in move_wheel_files strip_file_prefix=strip_file_prefix, File "/usr/lib/python2.7/site-packages/pip/wheel.py", line 339, in move_wheel_files clobber(source, lib_dir, True) File "/usr/lib/python2.7/site-packages/pip/wheel.py", line 317, in clobber shutil.copyfile(srcfile, destfile) File "/usr/lib64/python2.7/shutil.py", line 83, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/virtualenv.py' Change-Id: I7c387013739252402fa3774b1a2df241a09f24c0 Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/dovetail/dovetail-run.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh
index fb16f6adc..1b1b4d2ba 100755
--- a/jjb/dovetail/dovetail-run.sh
+++ b/jjb/dovetail/dovetail-run.sh
@@ -48,10 +48,10 @@ else
exit 1
fi
-pip install virtualenv
+sudo pip install virtualenv
cd ${releng_repo}/modules
-virtualenv venv
+sudo virtualenv venv
source venv/bin/activate
sudo pip install -e ./ >/dev/null