Commit 59db6ac4 authored by Kirill Smelkov's avatar Kirill Smelkov

Add support for zc.recipe.egg:develop

parent b1742031
......@@ -138,10 +138,14 @@ def bom_software(installed_software_path): # -> {} name -> PkgInfo
assert 'inline' in part, part
elif recipe == 'zc.recipe.egg:custom':
elif recipe in ('zc.recipe.egg:custom', 'zc.recipe.egg:develop'):
eggpath = part['__buildout_installed__']
assert len(eggpath.split()) == 1, eggpath # no spaces inside - just one item
addbom(eggpath, 'egg')
isegg = eggpath.endswith('.egg')
islink = eggpath.endswith('.egg-link'),
assert isegg or islink, eggpath
if isegg: # ignore .egg-link - we declare it through the place
addbom(eggpath, 'egg') # from where destination is downloaded from
elif recipe == 'zc.recipe.egg':
# XXX sadly zc.recipe.egg neither saves in .installed.cfg information about where the eggs are installed,
......
......@@ -132,6 +132,12 @@ url = /srv/slapgrid/slappart47/srv/project/slapos/stack/logrotate/instance-logro
""", '') # config ignored
case1("""\
[neoppod-develop]
recipe = zc.recipe.egg:develop
__buildout_installed__ = /ROOT/develop-eggs/neoppod.egg-link
""", '') # .egg-link ignored
case1("""\
[python-mysqlclient]
recipe = zc.recipe.egg:custom
......
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