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.
This commit is contained in:
Uwe Hermann 2013-04-16 00:58:29 +02:00
parent 8dc93c841f
commit f02121f8d2
1 changed files with 1 additions and 1 deletions

View File

@ -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',