# HG changeset patch # User Mads Kiilerich # Date 2020-01-22 23:02:04 # Node ID 28fa94f56370199f078f94796cb2ac81c4513678 # Parent 73be06bd1e5062488c1dfd83caf4d7e25f2a6ca7 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 diff --git a/scripts/validate-minimum-dependency-versions b/scripts/validate-minimum-dependency-versions --- a/scripts/validate-minimum-dependency-versions +++ b/scripts/validate-minimum-dependency-versions @@ -34,7 +34,7 @@ pip install --upgrade pip setuptools 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