changeset 8102:28fa94f56370 stable

scripts: handle "Python 2.7 reached the end of its life" message The script failed with: Error: pip detected following problems: 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. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 22 Jan 2020 23:02:04 +0100
parents 73be06bd1e50
children c4e27c23079f 8f468d08f463
files scripts/validate-minimum-dependency-versions
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/validate-minimum-dependency-versions	Tue Jan 21 21:05:44 2020 +0100
+++ b/scripts/validate-minimum-dependency-versions	Wed Jan 22 23:02:04 2020 +0100
@@ -34,7 +34,7 @@
 pip install -e . -r "$min_requirements" python-ldap python-pam 2> >(tee "$log" >&2)
 
 # Strip out the known Python 2.7 deprecation message.
-sed -i '/DEPRECATION: Python 2\.7 will reach the end of its life/d' "$log"
+sed -i '/DEPRECATION: Python 2\.7 /d' "$log"
 
 # Treat any message on stderr as a problem, for the caller to interpret.
 if [ -s "$log" ]; then