Skip to content

Commit

Permalink
Doc conf.py now gets the version correctly from version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha authored and Grisha Trubetskoy committed Aug 17, 2013
1 parent d5793a4 commit f3f26f6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
# The full version, including alpha/beta/rc tags.
# release = '2.6a0'

# We look for the Include/patchlevel.h file in the current Python source tree
# and replace the values accordingly.
#import patchlevel
#version, release = patchlevel.get_version_info()
#ZZZZ
version, release = '4.0', '4.0.0'
# version
import commands
v, r = commands.getoutput("../dist/version.sh").rsplit('.', 1)
version, release = v, v+'.'+r

# Ignore .rst in Sphinx its self.
exclude_trees = ['tools/sphinx']
Expand Down

0 comments on commit f3f26f6

Please sign in to comment.