Remove python 2.7 support 00/66600/1 v0.60.4
authorAnil Belur <abelur@linuxfoundation.org>
Mon, 25 Jan 2021 04:00:59 +0000 (14:00 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 25 Jan 2021 04:13:10 +0000 (14:13 +1000)
As per the deprecation notice python 2.7 is not long supported.
This causing job failures since the dependencies install
are not maintained.

DEPRECATION: Python 2.7 reached the end of its life on January 1st,
2020. Please upgrade your Python as Python 2.7 is no longer
maintained. pip 21.0 will drop support for Python 2.7 in January
2021. More details about Python 2 support in pip can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
pip 21.0 will remove support for this functionality.

Issue: RELENG-3375
Change-Id: I48cc4b91b9916918d222794534db5ade9b58dda0
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/remove-python-27-support-1e109eab35756c0b.yaml [new file with mode: 0644]
shell/python-tools-install.sh

diff --git a/releasenotes/notes/remove-python-27-support-1e109eab35756c0b.yaml b/releasenotes/notes/remove-python-27-support-1e109eab35756c0b.yaml
new file mode 100644 (file)
index 0000000..75ff50d
--- /dev/null
@@ -0,0 +1,15 @@
+---
+fixes:
+  - |
+    Remove python 2.7 support
+
+    As per the deprecation notice python 2.7 is not long supported.
+    This causing job failures since the dependencies install
+    are not maintained.
+
+    DEPRECATION: Python 2.7 reached the end of its life on January 1st,
+    2020. Please upgrade your Python as Python 2.7 is no longer
+    maintained. pip 21.0 will drop support for Python 2.7 in January
+    2021. More details about Python 2 support in pip can be found at
+    https://pip.pypa.io/en/latest/development/release-process/#python-2-support
+    pip 21.0 will remove support for this functionality.
index bf9b12e..062beb5 100644 (file)
@@ -50,14 +50,6 @@ EOF
        fi
     fi
 
-    #Project may still want to use system py27
-    #pip and setuptools must be updated for py27 to work.
-    python -m pip install --user --quiet --upgrade pip
-    python -m pip install --user --quiet --no-warn-script-location --upgrade setuptools
-    python --version
-    python -m pip --version
-    python -m pip freeze
-
     python3 -m pip install --user --quiet --upgrade pip
     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"