Disable script location warnings 00/62800/3
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 15 Jan 2020 01:44:27 +0000 (11:44 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 15 Jan 2020 01:44:27 +0000 (11:44 +1000)
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 <abelur@linuxfoundation.org>
releasenotes/notes/ignore-staging-repo-565069d9ab316adc.yaml [new file with mode: 0644]
shell/python-tools-install.sh

diff --git a/releasenotes/notes/ignore-staging-repo-565069d9ab316adc.yaml b/releasenotes/notes/ignore-staging-repo-565069d9ab316adc.yaml
new file mode 100644 (file)
index 0000000..7d32caa
--- /dev/null
@@ -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.
index b908e17..e27d64e 100644 (file)
@@ -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