diff --git a/setuptools/dist.py b/setuptools/dist.py index 3fa3048547..5f114d4c02 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -291,7 +291,7 @@ def assert_bool(dist, attr, value): def invalid_ignored_if_false(dist, attr, value): if not value: - warnings.warn("{attr} is ignored") + warnings.warn("{attr} is ignored", DistDeprecationWarning) return raise DistutilsSetupError(f"{attr} is invalid if it is set to a true value.")