From: Zooko O'Whielacronx Date: Sun, 21 Jun 2009 05:58:46 +0000 (-0700) Subject: setup: copy in misc/show-tools-version.py from zfec -- it prints out platform and... X-Git-Url: https://git.rkrishnan.org/listings/pb.xhtml?a=commitdiff_plain;h=18876466f58f80434a3521274a8b920d80d86870;p=tahoe-lafs%2Ftahoe-lafs.git setup: copy in misc/show-tools-version.py from zfec -- it prints out platform and setuptools versions --- diff --git a/misc/show-tool-versions.py b/misc/show-tool-versions.py index 98a9c4d4..95e84a27 100644 --- 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,5 +20,21 @@ try: print print "darcs:", out.replace("\n", " ") print full.rstrip() -except OSError: +except EnvironmentError: + pass + +try: + import platform + out = platform.platform() + print + print "platform:", out.replace("\n", " ") +except EnvironmentError: + pass + +try: + import pkg_resources + out = str(pkg_resources.require("setuptools")) + print + print "setuptools:", out.replace("\n", " ") +except (ImportError, EnvironmentError): pass