comparison setup.py @ 32233:feb910d2f59b

setup: drop support for Python 2.6 (BC) Per discussion on the mailing list and elsewhere, we've decided that Python 2.6 is too old to continue supporting. We keep accumulating hacks/fixes/workarounds for 2.6 and this is taking time away from more important work. So with this patch, we officially drop support for Python 2.6 and require Python 2.7 to run Mercurial.
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 02 May 2017 16:19:04 -0700
parents c48583859e04
children a04f5c651e52
comparison
equal deleted inserted replaced
32232:4c6b2076d292 32233:feb910d2f59b
3 # 3 #
4 # 'python setup.py install', or 4 # 'python setup.py install', or
5 # 'python setup.py --help' for more options 5 # 'python setup.py --help' for more options
6 6
7 import sys, platform 7 import sys, platform
8 if sys.version_info < (2, 6, 0, 'final'): 8 if sys.version_info < (2, 7, 0, 'final'):
9 raise SystemExit("Mercurial requires Python 2.6 or later.") 9 raise SystemExit('Mercurial requires Python 2.7 or later.')
10 10
11 if sys.version_info[0] >= 3: 11 if sys.version_info[0] >= 3:
12 printf = eval('print') 12 printf = eval('print')
13 libdir_escape = 'unicode_escape' 13 libdir_escape = 'unicode_escape'
14 else: 14 else: