Skip to content

Commit 2970735

Browse files
authored
Merge pull request numpy#26476 from roehling/distutils-apidoc
DOC: Skip API documentation for numpy.distutils with Python 3.12 and later
2 parents 3f3c1b3 + 5d404db commit 2970735

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ class PyTypeObject(ctypes.Structure):
143143
# for source files.
144144
exclude_dirs = []
145145

146+
exclude_patterns = []
147+
if sys.version_info[:2] >= (3, 12):
148+
exclude_patterns += ["reference/distutils.rst"]
149+
146150
# If true, '()' will be appended to :func: etc. cross-reference text.
147151
add_function_parentheses = False
148152

0 commit comments

Comments
 (0)