We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 315c340 commit 2f7630fCopy full SHA for 2f7630f
doc/source/conf.py
@@ -59,9 +59,10 @@
59
# built documents.
60
#
61
# The short X.Y version.
62
-version = subprocess.Popen(['sh', '-c', 'cd ../..; python setup.py --version'],
63
- stdout=subprocess.PIPE).stdout.read().decode()
64
-version = version.strip()
+version = subprocess.check_output(
+ ['python3', 'setup.py', '--version'],
+ cwd=os.path.join(os.path.dirname(__file__), os.pardir, os.pardir),
65
+).decode().strip()
66
# The full version, including alpha/beta/rc tags.
67
release = version
68
0 commit comments