Mercurial > hg
comparison setup.py @ 25009:e1fb276d4619
setup.py: drop compatibility with Python 2.4 and 2.5 (BC)
The last blocker for dropping Python 2.4 was Centos 5. We now provide our own
Mercurial package for Centos 5 with a bundled Python2.7.
I'm therefore happy to officially drop compatibility with Python 2.4 (and
Python 2.5 that nobody really cares about). This open the season for code
cleanup.
It is war's prize to take all vantage.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 08 May 2015 23:44:15 -0700 |
parents | 9c1942635c1f |
children | facaceeb85ac |
comparison
equal
deleted
inserted
replaced
25008:7940c538db83 | 25009:e1fb276d4619 |
---|---|
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 getattr(sys, 'version_info', (0, 0, 0)) < (2, 4, 0, 'final'): | 8 if getattr(sys, 'version_info', (0, 0, 0)) < (2, 6, 0, 'final'): |
9 raise SystemExit("Mercurial requires Python 2.4 or later.") | 9 raise SystemExit("Mercurial requires Python 2.6 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 |
14 literals.''' | 14 literals.''' |