release.py: use Python 2.7 for sphinx-build
authorW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 18:07:44 +0000 (13:07 -0500)
committerW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 18:07:44 +0000 (13:07 -0500)
release.py

index c248eda2b07a5d477bc69ec2701e7fa47eb10c1a..2650a3f4bc202c0e45b2180d1d4e6d3843b810e7 100755 (executable)
@@ -134,7 +134,8 @@ def make_html_docs(docdir):
     """Generate docs so users won't need to install Sphinx, etc.
     """
     print('generate HTML docs in {}'.format(docdir))
-    status,stdout,stderr = invoke(['make', 'dirhtml'], cwd=docdir)
+    status,stdout,stderr = invoke(
+        ['make', 'SPHINXBUILD=sphinx-build-2.7', 'dirhtml'], cwd=docdir)
 
 def create_tarball(tag):
     release_name='be-%s' % tag