Commit 1e57a758 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 4754d9c8
...@@ -185,9 +185,13 @@ class Develop(Base): ...@@ -185,9 +185,13 @@ class Develop(Base):
options['setup'], options['_d'], self.build_ext) options['setup'], options['_d'], self.build_ext)
def update(self): def update(self):
# If any option changes or the source directory is reinstalled egg_link, = self.options.installed_files
# or the .egg-link is deleted, install will be called instead. with open(egg_link) as f:
pass 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): 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