Commit f86c3be6 authored by Xavier Thompson's avatar Xavier Thompson

[fix] zc.recipe.egg: Reinstall missing develop egg metadata

Let zc.recipe.egg:develop reinstall if .egg-info or .dist-info is
missing from the folder referenced by .egg-link.
parent 2eba5086
......@@ -167,9 +167,13 @@ class Develop(Base):
options['setup'], options['_d'], self.build_ext)
def update(self):
# If any option changes or the source directory is reinstalled
# or the .egg-link is deleted, install will be called instead.
pass
egg_link, = self.options.installed_files
with open(egg_link) as f:
path = f.readline().strip()
for e in os.listdir(path):
if e.endswith(('.egg-info', '.dist-info')):
return
return self.install()
def build_ext(buildout, options):
......
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