[Python-checkins] Exclude non-default VENVDIR in Doc builds (#3974) (#3975)

Ned Deily webhook-mailer at python.org
Thu Oct 12 16:21:20 EDT 2017


https://github.com/python/cpython/commit/86f37b5225f992e466b1d2a7d0a05ceea6ea5450
commit: 86f37b5225f992e466b1d2a7d0a05ceea6ea5450
branch: 3.6
author: Ned Deily <nad at python.org>
committer: GitHub <noreply at github.com>
date: 2017-10-12T16:21:17-04:00
summary:

Exclude non-default VENVDIR in Doc builds (#3974) (#3975)

files:
M Doc/conf.py

diff --git a/Doc/conf.py b/Doc/conf.py
index d4ee50de7db..f7073d116a4 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/*', 'README.rst']
+venvdir = os.getenv('VENVDIR', 'venv')
+exclude_patterns = [venvdir+'/*', 'README.rst']
 
 
 # Options for HTML output



More information about the Python-checkins mailing list