Commit 32b86bff authored by André Anjos's avatar André Anjos 💬
Browse files

[extension] Experimental fix for issue #13 (closes #13)

parent b20bee78
......@@ -218,9 +218,26 @@ class Extension:
[f() for f in undo]
def _dists_sig(dists):
'''Override of zc.buildout.buildout._dists_sig() to avoid excessive
directory hashing on "normal" distributions'''
seen = set()
result = []
for dist in dists:
if dist in seen:
location = dist.location
return result
def extension(buildout):
"""Monkey patches zc.buildout.easy_install.develop"""
ext = Extension(buildout)
zc.buildout.easy_install.develop = ext.develop
zc.buildout.easy_install.Installer._call_easy_install = ext.installer
zc.buildout.buildout._dists_sig = _dists_sig
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