summaryrefslogtreecommitdiff
path: root/exts/pip_find_deps.py
diff options
context:
space:
mode:
Diffstat (limited to 'exts/pip_find_deps.py')
-rwxr-xr-xexts/pip_find_deps.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/exts/pip_find_deps.py b/exts/pip_find_deps.py
index 7c2d499..e84ac9c 100755
--- a/exts/pip_find_deps.py
+++ b/exts/pip_find_deps.py
@@ -89,6 +89,7 @@ class Bound(object):
print('__lt__ self: %s, x: %s' % (self, x))
x = self.val(x)
return self.value <= x if self.inclusive else self.value < x
+ return self.value < x if self.inclusive else self.value <= x
def __gt__(self, x):
print('__gt__ self: %s, x: %s' % (self, x))
@@ -163,6 +164,7 @@ class Dependency(object):
def check_eqs(dep, version):
+ print('HERE')
if dep.is_unconstrained():
dep.set_absolute_version(version)
elif version not in dep.excludes:
@@ -178,8 +180,12 @@ def check_eqs(dep, version):
elif version in dep.excludes:
dep.conflicts.append((('!=', version), ('==', version)))
elif dep.less_than < version:
+ print('!!! < !!!')
+ # < x == y: conflict if x <= y
+ # <= x == y: conflict if x < y
dep.conflicts.append((dep.less_than.spec, ('==', version)))
elif dep.greater_than > version:
+ print('!!! > !!!')
dep.conflicts.append((dep.greater_than.spec, ('==', version)))
# < x and == y: conflict, so conflict if y >= x