]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/commitdiff
setup: report on coverage.py and trialcoverage versions
authorzooko <zooko@zooko.com>
Mon, 10 May 2010 04:43:13 +0000 (10:13 +0530)
committerzooko <zooko@zooko.com>
Mon, 10 May 2010 04:43:13 +0000 (10:13 +0530)
Ignore-this: a1b181bccb2bf8c130adfa8f1c4cf13e

darcs-hash:e7eca9eb66bb070717fe64f1618b215125256757

misc/show-tool-versions.py

index 8f83403e7dbcd30708bdfa8d729e6ae60697a8bb..73582d9f4dd21535899a72c54c13fca364501cfe 100755 (executable)
@@ -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