From 5d404db53b60359784415058194d1ec106a7729b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20R=C3=B6hling?= Date: Sat, 18 May 2024 19:56:42 +0200 Subject: [PATCH] Skip API documentation for numpy.distutils with Python 3.12 and later --- doc/source/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index f57646c3a19e..8a4713e1c721 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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