mirror of https://github.com/pypa/pip
Refactor --global-option declaration in wheel command
This commit is contained in:
parent
d53ddb9380
commit
5b9a628873
|
@ -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(
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue