summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-06 18:55:21 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-06 18:55:21 +0000
commitc7130fc2484f08ba6d8b2e34d451609c75f4aa1e (patch)
treefc183e1afacde3a5af86d12ad0adcee55bb46155
parent3a494dec962a793be29130ed76223a5bc7696a42 (diff)
downloadimport-c7130fc2484f08ba6d8b2e34d451609c75f4aa1e.tar.gz
fix check_gt
-rwxr-xr-xexts/pip_find_deps.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/exts/pip_find_deps.py b/exts/pip_find_deps.py
index 965b395..1096f9a 100755
--- a/exts/pip_find_deps.py
+++ b/exts/pip_find_deps.py
@@ -162,6 +162,9 @@ def check_lt(dep, version):
def check_gt(dep, version):
if dep.is_unconstrained():
dep.greater_than = version
+ elif dep.is_unbounded():
+ if dep.absolute <= version:
+ dep.conflicts.append((('==', dep.absolute), ('>', version)))
elif dep.less_than <= version:
# conflict (our maximum version is less than this
# less_than version)