From d138ec08efc2dbaebb8752e215e324f38bd807a2 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Sat, 6 Aug 2022 19:27:26 +0100 Subject: docs: Silence sphinx errors for reference it cannot find --- docs/conf.py | 1 + setuptools/extension.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 9a4e33b7..2b60bf57 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -186,6 +186,7 @@ nitpick_ignore = [ ('py:exc', 'LibError'), # undocumented ('py:exc', 'LinkError'), # undocumented ('py:exc', 'PreprocessError'), # undocumented + ('py:exc', 'setuptools.errors.PlatformError'), # sphinx cannot find it ('py:func', 'distutils.CCompiler.new_compiler'), # undocumented # undocumented: ('py:func', 'distutils.dist.DistributionMetadata.read_pkg_file'), diff --git a/setuptools/extension.py b/setuptools/extension.py index 9010dec8..f2bbd59d 100644 --- a/setuptools/extension.py +++ b/setuptools/extension.py @@ -116,8 +116,8 @@ class Extension(_Extension): specifies that a build failure in the extension should not abort the build process, but simply not install the failing extension. - :raises DistutilsPlatformError: if 'runtime_library_dirs' is specified - on Windows. (since v63) + :raises setuptools.errors.PlatformError: if 'runtime_library_dirs' is + specified on Windows. (since v63) """ def __init__(self, name, sources, *args, **kw): -- cgit v1.2.1