From 078af5827344078f0f38488b94071a43c2926d36 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Wed, 15 Jan 2020 11:44:27 +1000 Subject: [PATCH] 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 --- releasenotes/notes/ignore-staging-repo-565069d9ab316adc.yaml | 7 +++++++ shell/python-tools-install.sh | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/ignore-staging-repo-565069d9ab316adc.yaml 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 -- 2.16.6