setup: copy in misc/show-tools-version.py from zfec -- it prints out platform and setuptools versions

This commit is contained in:
Zooko O'Whielacronx 2009-06-20 22:58:46 -07:00
parent bb00e13a11
commit 18876466f5

View File

@ -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