From: Ned Deily Date: Thu, 12 Oct 2017 20:39:51 +0000 (-0400) Subject: Exclude VENVDIR in Doc builds (#3977) X-Git-Tag: v3.5.5rc1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcb101e7f078f12fc3d2bf1730410798a880bfe3;p=thirdparty%2FPython%2Fcpython.git Exclude VENVDIR in Doc builds (#3977) --- diff --git a/Doc/Makefile b/Doc/Makefile index da3274396eb5..7f3e216c70e8 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 b3f26d5a6921..4145fd5a90a7 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