From 95a273e18ae201f4d82b8845c2f59e272f79940f Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Fri, 22 Nov 2024 11:10:36 +0100 Subject: [PATCH] Tools: build_ci: disable pip root user warning on CI Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv --- Tools/scripts/build_ci.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/scripts/build_ci.sh b/Tools/scripts/build_ci.sh index 8ae380a259..0deed90ea8 100755 --- a/Tools/scripts/build_ci.sh +++ b/Tools/scripts/build_ci.sh @@ -7,6 +7,10 @@ XOLDPWD=$PWD # profile changes directory :-( . ~/.profile +if [ "$CI" = "true" ]; then + export PIP_ROOT_USER_ACTION=ignore +fi + cd $XOLDPWD set -ex