Commit 3336c653 authored by Tarek Ziad's avatar Tarek Ziad

comparing requirement locations instead of requirement objects

parent 7c3ccbcf
......@@ -807,7 +807,8 @@ class Buildout(UserDict.DictMixin):
upgraded = []
for project in 'zc.buildout', 'setuptools':
req = pkg_resources.Requirement.parse(project)
if ws.find(req) != pkg_resources.working_set.find(req):
project_location = pkg_resources.working_set.find(req).location
if ws.find(req).location != project_location:
upgraded.append(ws.find(req))
if not upgraded:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment