mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 13:07:56 +00:00
setup: copy in misc/show-tools-version.py from zfec -- it prints out platform and setuptools versions
This commit is contained in:
parent
bb00e13a11
commit
18876466f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user