Skip to content

Commit

Permalink
Log a warning when the [wheel] section is used (#239)
Browse files Browse the repository at this point in the history
Has been considered legacy since
b2d2165 (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].
  • Loading branch information
jdufresne authored and agronholm committed Sep 24, 2018
1 parent b8b21a5 commit f7c9878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wheel/bdist_wheel.py
Expand Up @@ -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
Expand Down

0 comments on commit f7c9878

Please sign in to comment.