Commit 6f846515 authored by Julien Muchembled's avatar Julien Muchembled

Ignore Python version for eggs in part signatures

The version of Python should not affect the behaviour of a recipe.
Anyway, it was already ignored for DEVELOP_DIST eggs.

This makes the slapos mechanism to share parts more efficient. And with
the upcoming changes in buildout & slapos.recipe.cmmi, there would be
no way for the slapos.reboostrap extension to prevent everything from
being rebuilt when reboostrapping to a different version of Python,
if bootstrap parts are shared.

The monkey-patch by slapos.reboostrap now becomes useless.
parent 5557fc15
...@@ -1935,7 +1935,7 @@ def _dists_sig(dists): ...@@ -1935,7 +1935,7 @@ def _dists_sig(dists):
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))
else: else:
result.append(os.path.basename(location)) result.append(dist.project_name + '-' + dist.version)
return result return result
def _update_section(s1, s2): def _update_section(s1, s2):
......
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