Drop python-2.5 and remove 2.4,2.5 support codes

This commit is contained in:
Takayuki Shimizukawa
2013-12-15 14:16:53 +09:00
parent 95a07fe282
commit a8fc938d1b
26 changed files with 54 additions and 376 deletions
+6 -6
View File
@@ -44,20 +44,20 @@ A development egg can be found `here
<http://bitbucket.org/birkenfeld/sphinx/get/tip.gz#egg=Sphinx-dev>`_.
'''
if sys.version_info < (2, 6):
print('ERROR: Sphinx requires at least Python 2.6 to run.')
sys.exit(1)
requires = ['Pygments>=1.2', 'docutils>=0.7']
if sys.version_info[:3] >= (3, 3, 0):
requires[1] = 'docutils>=0.10'
if sys.version_info < (2, 6) or (3, 0) <= sys.version_info < (3, 3):
if (3, 0) <= sys.version_info < (3, 3):
requires.append('Jinja2>=2.3,<2.7')
else:
else: # 2.6, 2.7, 3.3 or later
requires.append('Jinja2>=2.3')
if sys.version_info < (2, 5):
print('ERROR: Sphinx requires at least Python 2.5 to run.')
sys.exit(1)
# tell distribute to use 2to3 with our own fixers
extra = {}
if sys.version_info >= (3, 0):