mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix return code of “pysetup run COMMAND” (closes #12222)
This commit is contained in:
parent
8ed34a130e
commit
6fd287e6c2
2 changed files with 19 additions and 16 deletions
|
@ -283,10 +283,11 @@ def _run(dispatcher, args, **kw):
|
|||
dist.parse_config_files()
|
||||
|
||||
for cmd in dispatcher.commands:
|
||||
# FIXME need to catch MetadataMissingError here (from the check command
|
||||
# e.g.)--or catch any exception, print an error message and exit with 1
|
||||
dist.run_command(cmd, dispatcher.command_options[cmd])
|
||||
|
||||
# XXX this is crappy
|
||||
return dist
|
||||
return 0
|
||||
|
||||
|
||||
@action_help("""\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue