From: Anil Belur Date: Wed, 15 Jan 2020 01:44:27 +0000 (+1000) Subject: Disable script location warnings X-Git-Tag: v0.50.0~9^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=078af5827344078f0f38488b94071a43c2926d36;p=releng%2Fglobal-jjb.git Disable script location warnings Disable these pip install warning that are not useful in the console logs. WARNING: The scripts easy_install and easy_install-3.6 are installed in '/home/jenkins/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning use --no-warn-script-location. Change-Id: Iddf89e31cc18324ec936799cce378beb3d5809de Signed-off-by: Anil Belur --- diff --git a/releasenotes/notes/ignore-staging-repo-565069d9ab316adc.yaml b/releasenotes/notes/ignore-staging-repo-565069d9ab316adc.yaml new file mode 100644 index 00000000..7d32caaf --- /dev/null +++ b/releasenotes/notes/ignore-staging-repo-565069d9ab316adc.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Disable the pip install warning that are not useful in the console logs. + + 00:25:10 WARNING: The scripts easy_install and easy_install-3.6 are installed in '/home/jenkins/.local/bin' which is not on PATH. + 00:25:10 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. diff --git a/shell/python-tools-install.sh b/shell/python-tools-install.sh index b908e170..e27d64ed 100644 --- a/shell/python-tools-install.sh +++ b/shell/python-tools-install.sh @@ -36,8 +36,8 @@ EOF # Use `python -m pip` to ensure we are using pip from user venv python3 -m venv ~/.local python3 -m pip install --user --quiet --upgrade pip - python3 -m pip install --user --quiet --upgrade setuptools - python3 -m pip install --user --quiet --upgrade --upgrade-strategy eager -r "$requirements_file" + python3 -m pip install --user --quiet --no-warn-script-location --upgrade setuptools + python3 -m pip install --user --quiet --no-warn-script-location --upgrade --upgrade-strategy eager -r "$requirements_file" rm -rf "$requirements_file" touch /tmp/pre-build-complete fi