From 470bda53cb6565ed56beee6aaf92b125aa6e25c3 Mon Sep 17 00:00:00 2001 From: zooko Date: Wed, 17 Jun 2009 23:50:39 +0530 Subject: [PATCH] misc/show-tool-versions.py: show setuptools version Ignore-this: b0ae5935f2642954f013d7087c16e1f6 darcs-hash:f222f4adc0e4b9589a937cffe054ff55c62423ce --- misc/show-tool-versions.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/misc/show-tool-versions.py b/misc/show-tool-versions.py index 13e7263..820eb01 100755 --- a/misc/show-tool-versions.py +++ b/misc/show-tool-versions.py @@ -9,7 +9,7 @@ try: out = subprocess.Popen(["buildbot", "--version"], stdout=subprocess.PIPE).communicate()[0] print "buildbot:", out.replace("\n", " ") -except OSError: +except EnvironmentError: pass try: @@ -20,7 +20,7 @@ try: print print "darcs:", out.replace("\n", " ") print full.rstrip() -except OSError: +except EnvironmentError: pass try: @@ -28,6 +28,13 @@ try: out = platform.platform() print print "platform:", out.replace("\n", " ") - print full.rstrip() -except OSError: +except EnvironmentError: + pass + +try: + import pkg_resources + out = str(pkg_resources.require("setuptools")) + print + print "setuptools:", out.replace("\n", " ") +except EnvironmentError: pass -- 2.45.2