From fd78c26dc3aacc520b544a5ebcba9ee4c3cfbc3b Mon Sep 17 00:00:00 2001
From: zooko <zooko@zooko.com>
Date: Mon, 10 May 2010 10:13:13 +0530
Subject: [PATCH] setup: report on coverage.py and trialcoverage versions

Ignore-this: a1b181bccb2bf8c130adfa8f1c4cf13e

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

diff --git a/misc/show-tool-versions.py b/misc/show-tool-versions.py
index 8f83403..73582d9 100755
--- a/misc/show-tool-versions.py
+++ b/misc/show-tool-versions.py
@@ -57,3 +57,21 @@ try:
 except EnvironmentError, le:
     sys.stderr.write("Got exception invoking 'darcs': %s" % (le,))
     pass
+
+try:
+    import pkg_resources
+    out = str(pkg_resources.require("coverage"))
+    print
+    print "coverage:", out.replace("\n", " ")
+except (ImportError, EnvironmentError), le:
+    sys.stderr.write("Got exception using 'pkg_resources' to get the version of coverage: %s" % (le,))
+    pass
+
+try:
+    import pkg_resources
+    out = str(pkg_resources.require("trialcoverage"))
+    print
+    print "trialcoverage:", out.replace("\n", " ")
+except (ImportError, EnvironmentError), le:
+    sys.stderr.write("Got exception using 'pkg_resources' to get the version of trialcoverage: %s" % (le,))
+    pass
-- 
2.45.2