From c31636e0d583f61432169c8c176deee888c88ed5 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Mon, 8 Feb 2021 11:59:19 -0800 Subject: [PATCH] [ci] Call pip2/3 using sudo (#166) Call pip2/3 using sudo to ensure packages are installed globally. --- azure-pipelines.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bd90d8bcc4f7..a853e0c04f13 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -40,12 +40,12 @@ steps: - script: | set -xe - pip2 install swsssdk-2.0.1-py2-none-any.whl - pip2 install sonic_py_common-1.0-py2-none-any.whl - pip2 install sonic_config_engine-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 - pip3 install sonic_config_engine-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 pip2 install sonic_config_engine-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 + sudo pip3 install sonic_config_engine-1.0-py3-none-any.whl workingDirectory: $(Pipeline.Workspace)/target/python-wheels/ displayName: 'Install Python dependencies'