summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-06 18:53:47 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-06 18:53:47 +0000
commit3a494dec962a793be29130ed76223a5bc7696a42 (patch)
tree3da69285b5512e77f996f8711afd91bcea8a6c72
parentafda0bdb0b038f6df599e99ab2f36b77a6939e2f (diff)
downloadimport-3a494dec962a793be29130ed76223a5bc7696a42.tar.gz
fix bug in check_lt
-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 42617a6..965b395 100755
--- a/exts/pip_find_deps.py
+++ b/exts/pip_find_deps.py
@@ -147,6 +147,9 @@ def check_eqs(dep, version):
def check_lt(dep, version):
if dep.is_unconstrained():
dep.less_than = version
+ elif dep.is_unbounded():
+ if dep.absolute >= version:
+ dep.conflicts.append((('==', dep.absolute), ('<', version)))
elif dep.greater_than >= version:
# conflict #(our minimum version is greater
# than this greater_than version)