Refactor --global-option declaration in wheel command

This commit is contained in:
Stéphane Bidoul 2021-04-04 17:07:31 +02:00
parent d53ddb9380
commit 5b9a628873
2 changed files with 2 additions and 8 deletions

View File

@ -840,7 +840,7 @@ global_options = partial(
action="append",
metavar="options",
help="Extra global options to be supplied to the setup.py "
"call before the install command.",
"call before the install or bdist_wheel command.",
) # type: Callable[..., Option]
no_clean = partial(

View File

@ -75,13 +75,7 @@ class WheelCommand(RequirementCommand):
)
self.cmd_opts.add_option(cmdoptions.build_options())
self.cmd_opts.add_option(
'--global-option',
dest='global_options',
action='append',
metavar='options',
help="Extra global options to be supplied to the setup.py "
"call before the 'bdist_wheel' command.")
self.cmd_opts.add_option(cmdoptions.global_options())
self.cmd_opts.add_option(
'--pre',