From 63a2eb3b8246be5a6b50a837b26175e0c8cb6cf8 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Wed, 19 Jun 2024 10:12:59 +0100 Subject: [PATCH] Fix undefined log function in bdist_wheel --- setuptools/command/bdist_wheel.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setuptools/command/bdist_wheel.py b/setuptools/command/bdist_wheel.py index ad34539eb8..a81187598a 100644 --- a/setuptools/command/bdist_wheel.py +++ b/setuptools/command/bdist_wheel.py @@ -284,9 +284,7 @@ def finalize_options(self): wheel = self.distribution.get_option_dict("wheel") if "universal" in wheel: # please don't define this in your global configs - log.warning( - "The [wheel] section is deprecated. Use [bdist_wheel] instead.", - ) + log.warn("The [wheel] section is deprecated. Use [bdist_wheel] instead.") val = wheel["universal"][1].strip() if val.lower() in ("1", "true", "yes"): self.universal = True