# HG changeset patch # User Manuel Jacob # Date 1589496817 -7200 # Node ID 91e509a12dbc4cd6cf2dcb9dae3ed383932132ac # Parent 017cc5ee537f058f769bc30f8096eeee52a0afe2 setup: raise minimum Python version to 2.7.4 On older Python versions, Mercurial is not really usable because of https://bugs.python.org/issue10211. Recently someone reported a crash on the mailing list when running Mercurial on Python 2.7.3. There was consensus that fixing compatibility for a Python version more than 7 years old is not worth it. So, instead of making Mercurial crash with an obscure exception, this patch raises the minimum Python version to 2.7.4. diff -r 017cc5ee537f -r 91e509a12dbc setup.py --- a/setup.py Tue May 19 16:18:41 2020 -0400 +++ b/setup.py Fri May 15 00:53:37 2020 +0200 @@ -13,7 +13,7 @@ # bug link: https://bugs.python.org/issue25270 supportedpy = ','.join( [ - '>=2.7', + '>=2.7.4', '!=3.0.*', '!=3.1.*', '!=3.2.*', @@ -54,7 +54,7 @@ # should have a chance of getting a 4.2 release, and when we ratchet # the version requirement forward again hopefully everyone will get # something that works for them. -if sys.version_info < (2, 7, 0, 'final'): +if sys.version_info < (2, 7, 4, 'final'): pip_message = ( 'This may be due to an out of date pip. ' 'Make sure you have pip >= 9.0.1.' @@ -74,7 +74,7 @@ except Exception: pass error = """ -Mercurial does not support Python older than 2.7. +Mercurial does not support Python older than 2.7.4. Python {py} detected. {pip} """.format(