summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2017-10-12 20:39:51 (GMT)
committerGitHub <noreply@github.com>2017-10-12 20:39:51 (GMT)
commitdcb101e7f078f12fc3d2bf1730410798a880bfe3 (patch)
tree2a82aa4b899832952bf6fe9b288040ddc42f7d2d
parent0a8ff1bbd7a90baf989e10d0baeb887c80f09100 (diff)
downloadcpython-dcb101e7f078f12fc3d2bf1730410798a880bfe3.zip
cpython-dcb101e7f078f12fc3d2bf1730410798a880bfe3.tar.gz
cpython-dcb101e7f078f12fc3d2bf1730410798a880bfe3.tar.bz2
Exclude VENVDIR in Doc builds (#3977)
-rw-r--r--Doc/Makefile2
-rw-r--r--Doc/conf.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/Doc/Makefile b/Doc/Makefile
index da32743..7f3e216 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 b3f26d5..4145fd5 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -37,7 +37,8 @@ highlight_language = 'python3'
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