diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-11 18:09:11 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-11 18:09:11 +0000 |
commit | d20d8851bb8c91c6397fa8194d71e3092a395b39 (patch) | |
tree | 1fb3e6657ffb0464987cb808b8d7900060ac3ac2 /exts/pip_find_deps.py | |
parent | 8c4de64c11c0f6609bf2f85ba40fa9037c49f6ef (diff) | |
download | import-baserock/richardipsum/python.tar.gz |
Diffstat (limited to 'exts/pip_find_deps.py')
-rwxr-xr-x | exts/pip_find_deps.py | 6 |
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 |