From 2de60c361b9ea405fc7084883f9a46440c40b8a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Sun, 31 Oct 2010 18:06:57 +0000 Subject: * don't add redundant python(abi) requires on paths * fix versioned python(abi) requires on paths to be '>=', not '==' --- pythoneggs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pythoneggs.py b/pythoneggs.py index a626873..ce92fb1 100755 --- a/pythoneggs.py +++ b/pythoneggs.py @@ -59,7 +59,9 @@ for f in files: platlib = get_python_lib(standard_lib=1, plat_specific=1).split(version[:3])[0] for lib in (purelib, platlib): if lib in f: - py_deps[name].append(('==',f.split(lib)[1].split(sep)[0])) + spec = ('>=',f.split(lib)[1].split(sep)[0]) + if not spec in py_deps[name]: + py_deps[name].append(spec) if lower.endswith('.egg') or \ lower.endswith('.egg-info') or \ lower.endswith('.egg-link'): -- cgit v1.2.1