From: zooko Date: Sat, 13 Jun 2009 21:51:25 +0000 (+0530) Subject: setup: copy in misc/show-tool-versions.py from pycryptopp X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/flags/%22news.html/status?a=commitdiff_plain;h=ce1af69032e6d025bcab8e404fcd0777eae5d46c;p=tahoe-lafs%2Fzfec.git setup: copy in misc/show-tool-versions.py from pycryptopp Ignore-this: 2831692cc7ec2583ea69e3b6a017b4ae darcs-hash:646447fe0c15d10f6bc649e0e51d8cc9a463730a --- diff --git a/misc/show-tool-versions.py b/misc/show-tool-versions.py new file mode 100755 index 0000000..bcabc6a --- /dev/null +++ b/misc/show-tool-versions.py @@ -0,0 +1,33 @@ +#! /usr/bin/env python + +import sys +import subprocess + +print "python:", sys.version.replace("\n", " ") + +try: + out = subprocess.Popen(["buildbot", "--version"], + stdout=subprocess.PIPE).communicate()[0] + print "buildbot:", out.replace("\n", " ") +except OSError: + pass + +try: + out = subprocess.Popen(["darcs", "--version"], + stdout=subprocess.PIPE).communicate()[0] + full = subprocess.Popen(["darcs", "--exact-version"], + stdout=subprocess.PIPE).communicate()[0] + print + print "darcs:", out.replace("\n", " ") + print full.rstrip() +except OSError: + pass + +try: + out = subprocess.Popen(["python", "-c", "import platform;print platform.platform()"], + stdout=subprocess.PIPE).communicate()[0] + print + print "platform:", out.replace("\n", " ") + print full.rstrip() +except OSError: + pass