From 9080fda5e311b0dc5b9dbf298e48011de52f448f Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Mon, 8 Feb 2021 10:39:02 -0800 Subject: [PATCH] [ci] Call pip2/3 using sudo (#150) Call pip2/3 using sudo to ensure packages are installed globally. --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 831d027266cf..e3fdb1fd92d8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -79,10 +79,10 @@ jobs: - script: | set -xe - pip2 install swsssdk-2.0.1-py2-none-any.whl - pip2 install sonic_py_common-1.0-py2-none-any.whl - pip3 install swsssdk-2.0.1-py3-none-any.whl - pip3 install sonic_py_common-1.0-py3-none-any.whl + sudo pip2 install swsssdk-2.0.1-py2-none-any.whl + sudo pip2 install sonic_py_common-1.0-py2-none-any.whl + sudo pip3 install swsssdk-2.0.1-py3-none-any.whl + sudo pip3 install sonic_py_common-1.0-py3-none-any.whl workingDirectory: $(Pipeline.Workspace)/target/python-wheels/ displayName: 'Install Python dependencies'