Allow documentation to build in Python 3 (#5736)
This commit is contained in:
parent
b46f1e3605
commit
a1c19f8389
1 changed files with 2 additions and 7 deletions
|
@ -61,11 +61,6 @@
|
||||||
os.environ['SPACK_ROOT'] = spack_root
|
os.environ['SPACK_ROOT'] = spack_root
|
||||||
os.environ['PATH'] += '%s%s/bin' % (os.pathsep, spack_root)
|
os.environ['PATH'] += '%s%s/bin' % (os.pathsep, spack_root)
|
||||||
|
|
||||||
# Get the spack version for use in the docs
|
|
||||||
spack_version = subprocess.Popen(
|
|
||||||
[spack_root + '/bin/spack', '-V'],
|
|
||||||
stderr=subprocess.PIPE).communicate()[1].strip().split('.')
|
|
||||||
|
|
||||||
# Set an environment variable so that colify will print output like it would to
|
# Set an environment variable so that colify will print output like it would to
|
||||||
# a terminal.
|
# a terminal.
|
||||||
os.environ['COLIFY_SIZE'] = '25x120'
|
os.environ['COLIFY_SIZE'] = '25x120'
|
||||||
|
@ -192,9 +187,9 @@ def setup(sphinx):
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '.'.join(spack_version[:2])
|
version = str(spack.spack_version.up_to(2))
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '.'.join(spack_version[:2])
|
release = str(spack.spack_version.up_to(2))
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|
Loading…
Reference in a new issue