Doug Hellmann  committed 3ec94f8

get the version number from the packaging scripts

  • Participants
  • Parent commits ca3b8ed

Comments (0)

Files changed (1)

File docs/sphinx/

 # serve to show the default.
 import sys, os
+import subprocess
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # built documents.
 # The short X.Y version.
-version = '2.9'
+version = subprocess.check_output(['sh', '-c', 'cd ../..; python --version'])
+version = version.strip()
 # The full version, including alpha/beta/rc tags.
 release = version