From a401295e9fafecab81f0aa9fbd57f82db81ec707 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 30 Jan 2014 16:48:00 +0100 Subject: Fix doc build with Python 2.6.x subprocess.check_output was new in Python 2.7. Use an alternative construct via subprocess.Popen which works on Python 2.6 as well. Change-Id: I0b44fc19183f1c6b23fe5a9cce31de381809534d --- docs/source/conf.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 131a9f9..f58e7b8 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -51,10 +51,8 @@ copyright = u'2012-%s, Doug Hellmann' % datetime.datetime.today().year # built documents. # # The short X.Y version. -version = subprocess.check_output([ - 'sh', '-c', - 'cd ../..; python setup.py --version', -]) +version = subprocess.Popen(['cd ../..; python setup.py --version'], + shell=True, stdout=subprocess.PIPE).stdout.read() version = version.strip() # The full version, including alpha/beta/rc tags. release = version -- cgit v1.2.1