diff options
author | Georg Brandl <georg@python.org> | 2014-01-22 18:13:49 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-22 18:13:49 +0100 |
commit | 6f75873b602864ebfd4512c79785d567e253860f (patch) | |
tree | b0b6fc2d8bc99bb63e544f843cc9763a9798ed4f /setup.py | |
parent | 1959d681ce28792585032a1090fe31157e8bbfa1 (diff) | |
parent | db07af36867c5da22160637cd535d32d20d69d28 (diff) | |
download | sphinx-6f75873b602864ebfd4512c79785d567e253860f.tar.gz |
merge with stable
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -41,20 +41,20 @@ Among its features are the following: * Setuptools integration ''' +if sys.version_info < (2, 6) or (3, 0) <= sys.version_info < (3, 2): + print('ERROR: Sphinx requires at least Python 2.6 or 3.2 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): |