From 221f9a4d15bbaf26583fabd126e9297d0a7f1b69 Mon Sep 17 00:00:00 2001
From: zooko <zooko@zooko.com>
Date: Mon, 10 May 2010 10:33:29 +0530
Subject: [PATCH] setup: don't exit with an error code from
 show-tool-versions.py when coverage or trialcoverage are not found

Ignore-this: a54fe128520ff837a9bb70362dd55d8f

darcs-hash:a079846759ce65c484e8d8b92a853d90f798e4eb
---
 misc/show-tool-versions.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/misc/show-tool-versions.py b/misc/show-tool-versions.py
index 73582d9..ffe9aa0 100755
--- a/misc/show-tool-versions.py
+++ b/misc/show-tool-versions.py
@@ -66,6 +66,9 @@ try:
 except (ImportError, EnvironmentError), le:
     sys.stderr.write("Got exception using 'pkg_resources' to get the version of coverage: %s" % (le,))
     pass
+except pkg_resources.DistributionNotFound, le:
+    sys.stderr.write("pkg_resources reported no coverage package installed: %s" % (le,))
+    pass
 
 try:
     import pkg_resources
@@ -75,3 +78,6 @@ try:
 except (ImportError, EnvironmentError), le:
     sys.stderr.write("Got exception using 'pkg_resources' to get the version of trialcoverage: %s" % (le,))
     pass
+except pkg_resources.DistributionNotFound, le:
+    sys.stderr.write("pkg_resources reported no trialcoverage package installed: %s" % (le,))
+    pass
-- 
2.45.2