From ce1af69032e6d025bcab8e404fcd0777eae5d46c Mon Sep 17 00:00:00 2001 From: zooko Date: Sun, 14 Jun 2009 03:21:25 +0530 Subject: [PATCH] setup: copy in misc/show-tool-versions.py from pycryptopp Ignore-this: 2831692cc7ec2583ea69e3b6a017b4ae darcs-hash:646447fe0c15d10f6bc649e0e51d8cc9a463730a --- misc/show-tool-versions.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 misc/show-tool-versions.py 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 -- 2.45.2