From f02121f8d2623a7b8cbc87b75cf529e0a9cfd7d5 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 16 Apr 2013 00:58:29 +0200 Subject: [PATCH] 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. --- bindings/python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',