Is there a Python buildout recipe that will allow the following:
[buildout] parts = group-of-parts [group-of-parts] recipe = what.can.i.use.for.this parts = part-1 part-2 [part-1] ... [part-2] ...
In other words, I need a recipe that accepts the "parts" attribute, similar to the "buildout" section, so I can manually manage the hierarchy of part groups.
Yes, I know that I could:
[buildout] parts = group-of-parts [group-of-parts] recipe = parts = ${part-1:recipe} ${part-2:recipe} [part-1] ... [part-2] ...
but relying on the side effect that the details will be built by referencing the attribute from them seems a little obscure. I would prefer it to be more explicit, using a recipe that simply allows you to specify the name of the part itself.
Of course, when expanded and redefined, it looks much cleaner to say:
[groups-of-parts] parts -= part-2
than:
[groups-of-parts] parts -= ${part-2:recipe}
Either my problem is that I just missed something fundamentally about how buildout works, or I just donโt notice something in the documentation that makes it much cleaner.
And no, I donโt want to have a flat hierarchy where all the parts are listed in the "parts" attribute of the "buildout" section.
source share