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:
parent
8dc93c841f
commit
f02121f8d2
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue