Run sphinx with the target Python, not whatever happens to be on the PATH

This commit is contained in:
Robin Dunn
2019-09-26 20:12:38 -07:00
parent f76a71a20e
commit 38d64b3851

View File

@@ -1093,7 +1093,7 @@ def cmd_sphinx(options, args):
pwd2 = pushDir(sphinxDir)
buildDir = os.path.join(sphinxDir, 'build')
htmlDir = os.path.join(phoenixDir(), 'docs', 'html')
runcmd('sphinx-build -b html -d %s/doctrees . %s' % (buildDir, htmlDir))
runcmd('{} -m sphinx -b html -d {}/doctrees . {}'.format(PYTHON, buildDir, htmlDir))
del pwd2
msg('Postprocessing sphinx output...')