[New-bugs-announce] [issue11409] pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.

Kelsey 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.

Example:

# pysetup -s Mako
Mako is not installed

# echo $?
1

Please review my patch in my d2 patch queue:
https://bitbucket.org/khightower/distutils2-patch-queue/qseries?apply=t&qs_apply=pysetup-search

----------
assignee: tarek
components: Distutils2
files: pysetup-search.patch
keywords: patch
messages: 130127
nosy: alexis, eric.araujo, kelseyhightower, tarek
priority: normal
severity: normal
status: open
title: pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.
type: behavior
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>
<http://bugs.python.org/issue11409>
_______________________________________


More information about the New-bugs-announce mailing list