From: Uwe Hermann Date: Mon, 15 Apr 2013 22:58:29 +0000 (+0200) Subject: Python bindings: Fix reported libsigrok version. X-Git-Tag: dsupstream~139 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f02121f8d2623a7b8cbc87b75cf529e0a9cfd7d5;p=libsigrok.git Python bindings: Fix reported libsigrok version. Use 'pkg-config --modversion libsigrok' to get the libsigrok package version. 'pkg-config --version libsigrok' ignores the argument and just reports the version of pkg-config itself. --- diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 403d9a2e..bb161cba 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -27,7 +27,7 @@ sr_libs = subprocess.check_output( ["pkg-config", "--libs", "libsigrok"]).rstrip().split(' ') sr_version = subprocess.check_output( - ["pkg-config", "--version", "libsigrok"]).rstrip() + ["pkg-config", "--modversion", "libsigrok"]).rstrip() setup( name = 'libsigrok',