setup.py
changeset 14979 a5046880eca3
parent 14973 5656cb5b9028
child 15151 0d4f6e843b05
equal deleted inserted replaced
14940:d78b92353f26 14979:a5046880eca3
     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 not hasattr(sys, 'version_info') or sys.version_info < (2, 4, 0, 'final'):
     8 if getattr(sys, 'version_info', (0, 0, 0)) < (2, 4, 0, 'final'):
     9     raise SystemExit("Mercurial requires Python 2.4 or later.")
     9     raise SystemExit("Mercurial requires Python 2.4 or later.")
    10 
    10 
    11 if sys.version_info[0] >= 3:
    11 if sys.version_info[0] >= 3:
    12     def b(s):
    12     def b(s):
    13         '''A helper function to emulate 2.6+ bytes literals using string
    13         '''A helper function to emulate 2.6+ bytes literals using string