summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-17 20:29:09 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-17 20:29:09 +0100
commit9cee723e44e5562252d352eb357d00c101de782b (patch)
tree645e141a9d74268c3fec48194e84ef8258fd144c /setup.py
parentea6004462081c109ab6903794520560ceda0917e (diff)
Use LooseVersion (instead of pkg-config) to check required version.
This again to try fixing the build on jenkins
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 23fb586..a1272ca 100755
--- a/setup.py
+++ b/setup.py
@@ -74,8 +74,7 @@ def pkg_config(name, require, min_vers=None):
74 ver = out.decode("utf-8").strip() 74 ver = out.decode("utf-8").strip()
75 75
76 if min_vers is not None: 76 if min_vers is not None:
77 assert 0 == subprocess.call(["pkg-config", "--atleast-version", 77 assert (LooseVersion(ver) >= LooseVersion(min_vers)) is True
78 min_vers, require])
79 78
80 call = subprocess.Popen(["pkg-config", "--cflags", require], 79 call = subprocess.Popen(["pkg-config", "--cflags", require],
81 stdout=subprocess.PIPE) 80 stdout=subprocess.PIPE)