From 18876466f58f80434a3521274a8b920d80d86870 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Sat, 20 Jun 2009 22:58:46 -0700 Subject: [PATCH] setup: copy in misc/show-tools-version.py from zfec -- it prints out platform and setuptools versions --- misc/show-tool-versions.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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 -- 2.45.2