Commit c766537a authored by Tres Seaver's avatar Tres Seaver

Don't repeat a dist in the signature.

Even if distutils / setuptools gives it to us more than once.
parent 83d8d941
...@@ -1614,8 +1614,12 @@ def _dir_hash(dir): ...@@ -1614,8 +1614,12 @@ def _dir_hash(dir):
return dir_hash return dir_hash
def _dists_sig(dists): def _dists_sig(dists):
seen = set()
result = [] result = []
for dist in dists: for dist in dists:
if dist in seen:
continue
seen.add(dist)
location = dist.location location = dist.location
if dist.precedence == pkg_resources.DEVELOP_DIST: if dist.precedence == pkg_resources.DEVELOP_DIST:
result.append(dist.project_name + '-' + _dir_hash(location)) result.append(dist.project_name + '-' + _dir_hash(location))
......
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