[New-bugs-announce] [issue11409] pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.
report at bugs.python.org
Sat Mar 5 19:29:10 CET 2011
New submission from Kelsey <kelsey.hightower at gmail.com>:
I would like to make pysetup easier to work with when called from shell scripts or similar tools that wish to take action based on the exit code of the pysetup --search command. In this case return 0 if a match is found and 1 otherwise.
As an enhancement, print a message to stdout that the dist is not installed.
# pysetup -s Mako
Mako is not installed
# echo $?
Please review my patch in my d2 patch queue:
nosy: alexis, eric.araujo, kelseyhightower, tarek
title: pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.
versions: 3rd party, Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file21009/pysetup-search.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce