]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/blob - misc/show-tool-versions.py
doc: TGPPLv1+, not TGGPLv1
[tahoe-lafs/zfec.git] / misc / show-tool-versions.py
1 #! /usr/bin/env python
2
3 import sys
4 import subprocess
5
6 print "python:", sys.version.replace("\n", " ") + ', maxunicode: ' + str(sys.maxunicode)
7
8 try:
9     out = subprocess.Popen(["buildbot", "--version"],
10                            stdout=subprocess.PIPE).communicate()[0]
11     print "buildbot:", out.replace("\n", " ")
12 except EnvironmentError:
13     pass
14
15 try:
16     out = subprocess.Popen(["darcs", "--version"],
17                            stdout=subprocess.PIPE).communicate()[0]
18     full = subprocess.Popen(["darcs", "--exact-version"],
19                             stdout=subprocess.PIPE).communicate()[0]
20     print
21     print "darcs:", out.replace("\n", " ")
22     print full.rstrip()
23 except EnvironmentError:
24     pass
25
26 try:
27     import platform
28     out = platform.platform()
29     print
30     print "platform:", out.replace("\n", " ")
31 except EnvironmentError:
32     pass
33
34 try:
35     import pkg_resources
36     out = str(pkg_resources.require("setuptools"))
37     print
38     print "setuptools:", out.replace("\n", " ")
39 except (ImportError, EnvironmentError):
40     pass