2009-02-19 08:35:58 +00:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import subprocess
|
|
|
|
|
2009-07-09 00:45:33 +00:00
|
|
|
print "python:", sys.version.replace("\n", " ") + ', maxunicode: ' + str(sys.maxunicode)
|
2009-02-19 08:35:58 +00:00
|
|
|
|
|
|
|
try:
|
|
|
|
out = subprocess.Popen(["buildbot", "--version"],
|
|
|
|
stdout=subprocess.PIPE).communicate()[0]
|
|
|
|
print "buildbot:", out.replace("\n", " ")
|
2009-06-21 05:58:46 +00:00
|
|
|
except EnvironmentError:
|
2009-02-19 08:35:58 +00:00
|
|
|
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()
|
2009-06-21 05:58:46 +00:00
|
|
|
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):
|
2009-02-19 08:35:58 +00:00
|
|
|
pass
|