summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexts/pip_find_deps.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/exts/pip_find_deps.py b/exts/pip_find_deps.py
index bad31ec..7c2d499 100755
--- a/exts/pip_find_deps.py
+++ b/exts/pip_find_deps.py
@@ -209,14 +209,16 @@ def check_gt(dep, version, inclusive=False):
gt_symbol = '>=' if inclusive else '>'
gt = UpperBound(version, inclusive)
+ # TODO: terrible name
def abs_cmp(x, y):
return x < y if inclusive else x <= y
if dep.is_unconstrained():
dep.greater_than = UpperBound(version, inclusive)
elif dep.is_unbounded():
- if dep.absolute <= version: # again unless inclusive
+ #if dep.absolute <= version: # again unless inclusive
#if gt >= dep.absolute:
+ if abs_cmp(dep.absolute, version):
dep.conflicts.append((('==', dep.absolute), (gt_symbol, version)))
elif dep.less_than <= version:
dep.conflicts.append((dep.less_than.spec, (gt_symbol, version)))