]> granicus.if.org Git - python/commitdiff
Mac installer build now needs venv for docs build (#2828) (#2833)
authorNed Deily <nad@python.org>
Sun, 23 Jul 2017 23:39:49 +0000 (19:39 -0400)
committerGitHub <noreply@github.com>
Sun, 23 Jul 2017 23:39:49 +0000 (19:39 -0400)
(cherry picked from commit 4c7532e96da19f2d5543bdab2b972797699c37d5)

Mac/BuildScript/build-installer.py

index d7d40110a66a767d00189bb9f3a23ff12ec68b6b..c61ad9b4c5efb8684ac23168a818966ead6e0c33 100755 (executable)
@@ -1115,10 +1115,10 @@ def buildPythonDocs():
     docdir = os.path.join(rootDir, 'pydocs')
     curDir = os.getcwd()
     os.chdir(buildDir)
-    # The Doc build changed for 3.4 (technically, for 3.4.1) and for 2.7.9
     runCommand('make clean')
-    # Assume sphinx-build is on our PATH, checked in checkEnvironment
-    runCommand('make html')
+    # Create virtual environment for docs builds with blurb and sphinx
+    runCommand('make venv')
+    runCommand('make html PYTHON=venv/bin/python')
     os.chdir(curDir)
     if not os.path.exists(docdir):
         os.mkdir(docdir)