From f7c9878712390414c03c64e9afa55ea4f30e965b Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 24 Sep 2018 14:09:25 -0700 Subject: [PATCH] Log a warning when the [wheel] section is used (#239) Has been considered legacy since b2d2165fa32e2684cf1aeb0605f2ee8a2108c129 (2014-03-17) or version 0.23.0. However, projects continue to use the [wheel] section. Adding a warning might help move more projects to the recommended [bdist_wheel]. --- wheel/bdist_wheel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wheel/bdist_wheel.py b/wheel/bdist_wheel.py index e324a4a6..d6cfa2f3 100644 --- a/wheel/bdist_wheel.py +++ b/wheel/bdist_wheel.py @@ -125,6 +125,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 + logger.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