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
This commit is contained in:
Pierre Kancir 2024-11-22 11:10:36 +01:00 committed by Peter Barker
parent 7980fabeeb
commit 95a273e18a

View File

@ -7,6 +7,10 @@ XOLDPWD=$PWD # profile changes directory :-(
. ~/.profile . ~/.profile
if [ "$CI" = "true" ]; then
export PIP_ROOT_USER_ACTION=ignore
fi
cd $XOLDPWD cd $XOLDPWD
set -ex set -ex