]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/commitdiff
setup: copy in misc/show-tool-versions.py from pycryptopp
authorzooko <zooko@zooko.com>
Sat, 13 Jun 2009 21:51:25 +0000 (03:21 +0530)
committerzooko <zooko@zooko.com>
Sat, 13 Jun 2009 21:51:25 +0000 (03:21 +0530)
Ignore-this: 2831692cc7ec2583ea69e3b6a017b4ae

darcs-hash:646447fe0c15d10f6bc649e0e51d8cc9a463730a

misc/show-tool-versions.py [new file with mode: 0755]

diff --git a/misc/show-tool-versions.py b/misc/show-tool-versions.py
new file mode 100755 (executable)
index 0000000..bcabc6a
--- /dev/null
@@ -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