summaryrefslogtreecommitdiff
path: root/Mac/BuildScript/build-installer.py
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2017-07-23 17:10:40 -0400
committerGitHub <noreply@github.com>2017-07-23 17:10:40 -0400
commitf76d1a0819899c4aa6fd3fa5834c7677faa01b12 (patch)
treed30873634b137cf6a3a99c2b68d83e20dbedf5a7 /Mac/BuildScript/build-installer.py
parent5aa3bf041de5ee90ccbfcff103dcf3e54c5af237 (diff)
downloadcpython-git-f76d1a0819899c4aa6fd3fa5834c7677faa01b12.tar.gz
Mac installer build now needs venv for docs build (#2828) (#2830)
(cherry picked from commit 4c7532e96da19f2d5543bdab2b972797699c37d5)
Diffstat (limited to 'Mac/BuildScript/build-installer.py')
-rwxr-xr-xMac/BuildScript/build-installer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py
index 1fff052e24..4cb7e3214c 100755
--- a/Mac/BuildScript/build-installer.py
+++ b/Mac/BuildScript/build-installer.py
@@ -1088,10 +1088,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)