Use LooseVersion (instead of pkg-config) to check required version.

This again to try fixing the build on jenkins
This commit is contained in:
Davide Andreoli 2015-01-17 20:29:09 +01:00
parent ea60044620
commit 9cee723e44
1 changed files with 1 additions and 2 deletions

View File

@ -74,8 +74,7 @@ def pkg_config(name, require, min_vers=None):
ver = out.decode("utf-8").strip()
if min_vers is not None:
assert 0 ==["pkg-config", "--atleast-version",
min_vers, require])
assert (LooseVersion(ver) >= LooseVersion(min_vers)) is True
call = subprocess.Popen(["pkg-config", "--cflags", require],