[Python-checkins] Mac installer build now needs venv for docs build (#2828)

Ned Deily webhook-mailer at python.org
Sun Jul 23 16:39:56 EDT 2017


https://github.com/python/cpython/commit/4c7532e96da19f2d5543bdab2b972797699c37d5
commit: 4c7532e96da19f2d5543bdab2b972797699c37d5
branch: master
author: Ned Deily <nad at python.org>
committer: GitHub <noreply at github.com>
date: 2017-07-23T16:39:54-04:00
summary:

Mac installer build now needs venv for docs build (#2828)

files:
M Mac/BuildScript/build-installer.py

diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py
index 7b4376f42b8..7ffa3673664 100755
--- a/Mac/BuildScript/build-installer.py
+++ b/Mac/BuildScript/build-installer.py
@@ -1089,10 +1089,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)



More information about the Python-checkins mailing list