Commit b4dc26b2 authored by André Anjos's avatar André Anjos 💬 Committed by GitHub
Browse files

Merge pull request #14 from bioidiap/issue_13

[extension] Experimental fix for issue #13 (closes #13)
parents b20bee78 32b86bff
......@@ -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