提交 5b9a6288 编写于 作者: S Stéphane Bidoul

Refactor --global-option declaration in wheel command

上级 d53ddb93
......@@ -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',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册