Skip to content

Commit

Permalink
Merge pull request #26476 from roehling/distutils-apidoc
Browse files Browse the repository at this point in the history
DOC: Skip API documentation for numpy.distutils with Python 3.12 and later
  • Loading branch information
charris committed May 19, 2024
2 parents 3f3c1b3 + 5d404db commit 2970735
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ class PyTypeObject(ctypes.Structure):
# for source files.
exclude_dirs = []

exclude_patterns = []
if sys.version_info[:2] >= (3, 12):
exclude_patterns += ["reference/distutils.rst"]

# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = False

Expand Down

0 comments on commit 2970735

Please sign in to comment.