summaryrefslogtreecommitdiff
path: root/sphinx/application.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2015-03-14 16:46:24 +0900
committershimizukawa <shimizukawa@gmail.com>2015-03-14 16:46:24 +0900
commitea25342accbe8aad50f9e6e38d989f0eb12cbd0d (patch)
treecbb875e6f5f46df2b4edfeb51a340822b3345f51 /sphinx/application.py
parent52b46a0c34aa225a206a4877bc6bb3914a913b42 (diff)
downloadsphinx-git-ea25342accbe8aad50f9e6e38d989f0eb12cbd0d.tar.gz
Support PEP-440 version spec for developers.
Diffstat (limited to 'sphinx/application.py')
-rw-r--r--sphinx/application.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/application.py b/sphinx/application.py
index b87689e71..f65592b1d 100644
--- a/sphinx/application.py
+++ b/sphinx/application.py
@@ -111,7 +111,7 @@ class Sphinx(object):
self.messagelog = deque(maxlen=10)
# say hello to the world
- self.info(bold('Running Sphinx v%s' % sphinx.__version__))
+ self.info(bold('Running Sphinx v%s' % sphinx.__display_version__))
# status code for command-line application
self.statuscode = 0
@@ -158,7 +158,7 @@ class Sphinx(object):
# check the Sphinx version if requested
if self.config.needs_sphinx and \
- self.config.needs_sphinx > sphinx.__version__[:3]:
+ self.config.needs_sphinx > sphinx.__display_version__[:3]:
raise VersionRequirementError(
'This project needs at least Sphinx v%s and therefore cannot '
'be built with this version.' % self.config.needs_sphinx)
@@ -453,7 +453,7 @@ class Sphinx(object):
def require_sphinx(self, version):
# check the Sphinx version if requested
- if version > sphinx.__version__[:3]:
+ if version > sphinx.__display_version__[:3]:
raise VersionRequirementError(version)
def import_object(self, objname, source=None):