[issue12222] All pysetup commands should respect exit codes

2011-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab125793243f by Éric Araujo in branch 'default': Fix return code of “pysetup run COMMAND” (closes #1) http://hg.python.org/cpython/rev/ab125793243f -- resolution: -> fixed stage: -> committed/rejected status: open -> closed _

[issue12222] All pysetup commands should respect exit codes

2011-07-29 Thread Éric Araujo
Éric Araujo added the comment: I committed my patch, except for one change in the run action. It returns the dist.Distribution instance, which is needed by test_uninstall and not trivial to fix. I tried changing the code to use Distribution and command objects directly but suddenly the --pr

[issue12222] All pysetup commands should respect exit codes

2011-07-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 998566bf7fba by Éric Araujo in branch 'default': Let all pysetup actions return a meaningful 0 or 1 exit code (#1). http://hg.python.org/cpython/rev/998566bf7fba -- nosy: +python-dev ___ Python track

[issue12222] All pysetup commands should respect exit codes

2011-06-10 Thread Éric Araujo
Éric Araujo added the comment: BTW, some functions do not explicitly return 0, but this is okay: they will return None, which is a boolean false value, which is understood as 0 by sys.exit. -- ___ Python tracker

[issue12222] All pysetup commands should respect exit codes

2011-06-10 Thread Éric Araujo
Éric Araujo added the comment: Here’s a patch adding “return 1” after all errors, unifying the use of logging and cleaning up a few things (like moving KeyboardInterrupt handling from the _run function up to the main function). -- keywords: +patch Added file: http://bugs.python.org/fi

[issue12222] All pysetup commands should respect exit codes

2011-06-06 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +pysetup --search should return non-zero when a dist is not installed and print a message stating the fact. ___ Python tracker ___

[issue12222] All pysetup commands should respect exit codes

2011-05-31 Thread Tarek Ziadé
Tarek Ziadé added the comment: fixed install in http://hg.python.org/cpython/rev/ebff46b232ed -- ___ Python tracker ___ ___ Python-bu

[issue12222] All pysetup commands should respect exit codes

2011-05-31 Thread Tarek Ziadé
New submission from Tarek Ziadé : All actions in packaging.run need to respect a basic exit convention 0/1. This is important because pysetup will be used in automated scripts so the caller needs to know wether the call failed or succedeed. Example: pysetup install project => sys,exit(0 or 1