We can add a 'versions' section in buildout.cfg to indicate the version of used recipes.
ie: buildout.cfg for myProject-1.0
This way, buildout will use plone.recipe.zope2install version 0.2 and plone.recipe.zope2instance version 0.8. For other stuff like setuptools it will "pick" the best distribution. We can tell buildout to generate an error when it "Picks" a version:
ie: buildout.cfg for myProject-1.0
[buildout]
parts =
zope2
instance
versions = myProject-1.0
[myProject-1.0]
plone.recipe.zope2install = 0.2
plone.recipe.zope2instance = 0.8
[zope2]
recipe = plone.recipe.zope2install
url = http://www.zope.org/Products/Zope/2.9.7/Zope-2.9.7-final.tgz
[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:admin
debug-mode = off
zodb-cache-size = 70000
This way, buildout will use plone.recipe.zope2install version 0.2 and plone.recipe.zope2instance version 0.8. For other stuff like setuptools it will "pick" the best distribution. We can tell buildout to generate an error when it "Picks" a version:
[buildout]
parts =
zope2
instance
versions = myProject-1.0
allow-picked-versions = false
[myProject-1.0]
plone.recipe.zope2install = 0.2
plone.recipe.zope2instance = 0.8
[zope2]
recipe = plone.recipe.zope2install
url = http://www.zope.org/Products/Zope/2.9.7/Zope-2.9.7-final.tgz
[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:admin
debug-mode = off
zodb-cache-size = 70000
05 Oct 2009 08:41:09
Thank you for posting practical, real-world information about it - useful and much appreciated. rather nw in this stuff, I pay much attention to self-education. have used to find great blogs with useful pieces of information by http://torrents.rapid4me.com search engine, but always search for smth more. really glad to find good ones.
02 Dec 2009 12:26:47
BRILLIANT!!!!!!!!!
Thank you so much, not sure why all of a sudden it wanted to use a different version of a recipe.
But you've solved much head aches, thanks!
Al