]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - misc/show-tool-versions.py
move show-tool-versions out of setup.py and into a separate script in misc/ , since...
[tahoe-lafs/tahoe-lafs.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", " ")
7
8 try:
9     out = subprocess.Popen(["buildbot", "--version"],
10                            stdout=subprocess.PIPE).communicate()[0]
11     print "buildbot:", out.replace("\n", " ")
12 except OSError:
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 OSError:
24     pass