Professional Python® programming and open source software consulting since 2004


Buildout Recipe Tip

When package and distribution names don't match

Sometimes a Plone add-on is distributed as a compressed archive and is extracted to the foo/ directory but the Python package is named bar. This can be a problem when using plone.recipe.distros because when bar is extracted to parts/productdistros/foo the Plone add-on will not be loaded by Zope.

Fortunately there is which allows you to specify the destination. For example, ZNagios, an add-on that integrates Zope with Nagios.

If we use plone.recipe.distros we end up with ZNagios installed in parts/productdistros/trunk. But if we use we end up with the contents of the compressed archive in products/ZNagios.


[buildout] parts = znagios [znagios] recipe = url = destination = products/ZNagios strip-top-level-dir = True

After running Buildout you should have the following files in your products/ directory.

/products/ZNagios /products/ZNagios/COPYRIGHT.txt /products/ZNagios/LICENSE.txt /products/ZNagios/README.txt /products/ZNagios/ /products/ZNagios/ /products/ZNagios/ /products/ZNagios/version.txt /products/ZNagios/ /products/ZNagios/zope.cfg


Blog Now Résumé