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.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/exts/pip_find_deps.py b/exts/pip_find_deps.py
index a59347b..591f614 100755
--- a/exts/pip_find_deps.py
+++ b/exts/pip_find_deps.py
@@ -130,9 +130,9 @@ def check_eqs(dep, version):
% (version, dep.absolute))
dep.conflicts.append((('==', dep.absolute), ('==', version)))
elif version in dep.excludes:
- warn('conflict! == %s conflicts with != %s'
+ warn('conflict! != %s conflicts with == %s'
% (version, version))
- dep.conflicts.append((('==', version), ('!=', version)))
+ dep.conflicts.append((('!=', version), ('==', version)))
elif version > dep.less_than:
# conflict
warn('42 conflict! < %s conflicts with == %s'
@@ -194,8 +194,11 @@ def resolve_version_constraints(requirements):
if op == '==':
check_eqs(dep, version)
elif op == '!=':
- dep.excludes.append(version)
- check_eqs(dep, version)
+ if dep.absolute != version:
+ dep.excludes.append(version)
+ else:
+ dep.conflicts.append((('==', dep.absolute),
+ ('!=', version)))
elif op == '<':
check_lt(dep, version)
elif op == '>':