summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDasIch <dasdasich@gmail.com>2010-08-15 20:48:19 +0200
committerDasIch <dasdasich@gmail.com>2010-08-15 20:48:19 +0200
commit4649062475d1502a171cf16e139b79ffb4e89de0 (patch)
tree2c3b933e9aa7aab4deced189fab463e586cc8bd3 /setup.py
parentbaea95942d71053c4b723252ebcb57902f1ed469 (diff)
downloadsphinx-4649062475d1502a171cf16e139b79ffb4e89de0.tar.gz
Use uuid as a requirement in the setup.py and mention it in the documentation for Python 2.4
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index fe4066b8..af9e660c 100644
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ A development egg can be found `here
<http://bitbucket.org/birkenfeld/sphinx/get/tip.gz#egg=Sphinx-dev>`_.
'''
-requires = ['Pygments>=0.8', 'Jinja2>=2.2', 'docutils>=0.5']
+requires = ['Pygments>=0.8', 'Jinja2>=2.2', 'docutils>=0.5', 'uuid>=1.30']
if sys.version_info < (2, 4):
print('ERROR: Sphinx requires at least Python 2.4 to run.')
@@ -61,7 +61,10 @@ if sys.version_info < (2, 5):
except:
pass
else:
- del requires[-1]
+ del requires[-2]
+elif sys.version_info >= (2, 5):
+ # An uuid module has been added to the stdlib in 2.5
+ del requires[-1]
# Provide a "compile_catalog" command that also creates the translated