]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Let all pysetup actions return a meaningful 0 or 1 exit code (#12222).
authorÉric Araujo <merwok@netwok.org>
Fri, 29 Jul 2011 00:31:39 +0000 (02:31 +0200)
committerÉric Araujo <merwok@netwok.org>
Fri, 29 Jul 2011 00:31:39 +0000 (02:31 +0200)
commit943006bf68825ea007a1941f8afb09d202868988
treef7d101eead53c8d2b69f10210fdafe798d4fc6d1
parent73c175f5a0a7e749357e74f518c89b716b7e34b2
Let all pysetup actions return a meaningful 0 or 1 exit code (#12222).

This will help scripts calling pysetup know if a command failed.
Printing/logging was also made more consistent, and a few things were
cleaned up.  In particular, the error/Ctrl-C handling was moved from the
_run function up to the main function.

The run action is not fixed yet; it returns the dist.Distribution
instance, which is needed by test_uninstall and not trivial to fix.
Lib/packaging/run.py