Commit 4768dd11 authored by Julien Muchembled's avatar Julien Muchembled Committed by Xavier Thompson

[fix] Sign dists from python library with version

Dists in python library (e.g. site-packages) using .dist-info format
are marked as DEVELOP_DIST by setuptools. Use their version to sign
these, and not their location like actual develop dists.
parent de526f93
...@@ -2173,7 +2173,8 @@ def _dists_sig(dists): ...@@ -2173,7 +2173,8 @@ def _dists_sig(dists):
continue continue
seen.add(dist) seen.add(dist)
location = dist.location location = dist.location
if dist.precedence == pkg_resources.DEVELOP_DIST: if (dist.precedence == pkg_resources.DEVELOP_DIST
and location != zc.buildout.easy_install.python_lib):
result.append(dist.project_name + '-' + _dir_hash(location)) result.append(dist.project_name + '-' + _dir_hash(location))
else: else:
result.append(dist.project_name + '-' + dist.version) result.append(dist.project_name + '-' + dist.version)
......
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