diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2011-10-10 19:16:01 -0500 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2011-10-10 19:16:01 -0500 |
commit | 6947cab38a20986e71b170d345682be9657cda1b (patch) | |
tree | 69b7230b2fb4a11fbf6906acf071aa8e18bdc36e /couchjs/c_src/SConscript | |
parent | cf630a2e87ac1b6eace26601dc5b7ffdb39273b2 (diff) |
Remove call to subprocess.check_output
This function is new in Python 2.7 and we already have a function that
returns command ouput. Just reuse runcmd to get the version.
Diffstat (limited to 'couchjs/c_src/SConscript')
-rw-r--r-- | couchjs/c_src/SConscript | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/couchjs/c_src/SConscript b/couchjs/c_src/SConscript index a3e0cc07..a5f8b66b 100644 --- a/couchjs/c_src/SConscript +++ b/couchjs/c_src/SConscript @@ -13,7 +13,6 @@ # the License. import os import commands -import subprocess def require_lib(name): if not conf.CheckLib(name): @@ -89,7 +88,7 @@ if not env.GetOption('clean'): ## Define properties for -h / -V - vsn = subprocess.check_output(["git","describe","--match","1.*"]) + (_, vsn) = runcmd("git describe --match 1.*") conf.Define("PACKAGE_STRING", '"%s"' % vsn.rstrip()) conf.Define("PACKAGE_NAME", '"Cloudant BigCouch"') conf.Define("PACKAGE_BUGREPORT", '"https://github.com/cloudant/bigcouch/issues"') |