[Python-checkins] Exclude VENVDIR in Doc builds (#3977)
Ned Deily
webhook-mailer at python.org
Thu Oct 12 16:39:55 EDT 2017
https://github.com/python/cpython/commit/dcb101e7f078f12fc3d2bf1730410798a880bfe3
commit: dcb101e7f078f12fc3d2bf1730410798a880bfe3
branch: 3.5
author: Ned Deily <nad at python.org>
committer: GitHub <noreply at github.com>
date: 2017-10-12T16:39:51-04:00
summary:
Exclude VENVDIR in Doc builds (#3977)
files:
M Doc/Makefile
M Doc/conf.py
diff --git a/Doc/Makefile b/Doc/Makefile
index da3274396eb..7f3e216c70e 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -170,7 +170,7 @@ dist:
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
check:
- $(PYTHON) tools/rstlint.py -i tools
+ $(PYTHON) tools/rstlint.py -i tools -i $(VENVDIR) -i README.rst
serve:
../Tools/scripts/serve.py build/html
diff --git a/Doc/conf.py b/Doc/conf.py
index b3f26d5a692..4145fd5a90a 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -37,7 +37,8 @@
needs_sphinx = '1.2'
# Ignore any .rst files in the venv/ directory.
-exclude_patterns = ['venv/*']
+venvdir = os.getenv('VENVDIR', 'venv')
+exclude_patterns = [venvdir+'/*', 'README.rst']
# Options for HTML output
More information about the Python-checkins
mailing list