How to make a Plone 2.5 buildout prefer eggs to old-style products in parts/plone

1 message Options
Embed this post
Permalink
Sascha Gottfried () How to make a Plone 2.5 buildout prefer eggs to old-style products in parts/plone
Reply Threaded More More options
Print post
Permalink
Hi,

I have a typical buildout for Plone 2.5.5. I want to use a newer versions of packages shipped with Plone 2.5.5. I could do it for Five and Marshall and during instance start the log shows that it skips the older version that came with the TGZ for Zope and Plone. The same I want to do with PloneLanguageTool 3.0.3 that is eggified since version 2.0. I just placed it in the egg section of buildout, but this version was never chosen. By the way - since version 2.0 of PloneLanguageTool you need Plone 3.0. My last step was to delete the directory in parts/products to make the instance choose the newer version during startup. That lead me to a couple of ImportErrors and CMFCore dependencies as noted above.

But nevertheless I want to know how to setup buildout to choose a newer version of PloneTestCase or GenericSetup that were eggified in more recent versions. So how to setup buildout.cfg to prefer some eggs instead of products found in paths listed in the 'products' option of recipe.plone.zope2instance???

I attach 2 things:
1. buildout.cfg
2. instance.log that shows what I described above

++buildout.cfg++

[buildout]

newest = false

parts =
    plone
    zope2
    productdistros
    marshall
    instance
    zopepy


# Add additional egg download sources here. dist.plone.org contains archives
# of Plone packages.
find-links =
    http://dist.plone.org
    http://dist.plone.org/thirdparty

# Add additional eggs here
# elementtree is required by Plone
eggs =
    elementtree
    Products.ZMySQLDA
    Products.Clouseau
    Products.PloneLanguageTool
   


# Reference any eggs you are developing here, one per line
# e.g.: develop = src/my.package
develop =

versions = versions

[versions]
Products.ZMySQLDA = 3.1
#version pinning
#bin/buildout -Novvvvv |sed -ne 's/^Picked: //p' | sort | uniq
elementtree = 1.2.7-20070827-preview
infrae.subversion = 1.4.5
MySQL-python = 1.2.3c1
plone.recipe.distros = 1.5
plone.recipe.zope2install = 3.2
plone.recipe.zope2instance = 3.5
Products.Clouseau = 0.8.4dev
py = 1.0.2
setuptools = 0.6c9
zc.buildout = 1.4.1
zc.recipe.egg = 1.2.2


[plone]
# For more information on this step and configuration options see:
# http://pypi.python.org/pypi/plone.recipe.distros
recipe = plone.recipe.distros
urls =
    http://launchpad.net/plone/2.5/2.5.5/+download/Plone-2.5.5.tar.gz
    http://codespeak.net/z3/five/release/Five-1.4.4.tgz
    http://codespeak.net/z3/cmfonfive/release/CMFonFive-1.3.4.tgz
nested-packages = Plone-2.5.5.tar.gz
version-suffix-packages = Plone-2.5.5.tar.gz

[zope2]
# For more information on this step and configuration options see:
# http://pypi.python.org/pypi/plone.recipe.zope2install
recipe = plone.recipe.zope2install
fake-zope-eggs = true
url = http://www.zope.org/Products/Zope/2.9.10/Zope-2.9.10-final.tgz

[productdistros]
# For more information on this step and configuration options see:
# http://pypi.python.org/pypi/plone.recipe.distros
recipe = plone.recipe.distros
urls =
nested-packages =
version-suffix-packages =

[marshall]
recipe = infrae.subversion
urls =
    https://svn.plone.org/svn/archetypes/Marshall/tags/1.0.0/ Marshall
location = products

[instance]
# For more information on this step and configuration options see:
# http://pypi.python.org/pypi/plone.recipe.zope2instance
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:admin
http-address = 9080
debug-mode = on
verbose-security = on
deprecation-warnings = off

# If you want Zope to know about any additional eggs, list them here.
# This should include any development eggs you listed in develop-eggs above,
# e.g. eggs = Plone my.package
eggs =
    ${buildout:eggs}
   

# If you want to register ZCML slugs for any packages, list them here.
# e.g. zcml = my.package my.other.package
zcml =

products =
    ${buildout:directory}/products
    ${productdistros:location}
    ${plone:location}






++instance.log++

2009-10-09T13:08:42 WARNING Zope OFS.Application: Duplicate Product name:After loading Product 'Five' from '/data/zope/gottfried/amtsblatt_buildout/parts/p
lone',
I skipped the one in '/data/zope/gottfried/amtsblatt_buildout/parts/zope2/lib/python/Products'.

------
2009-10-09T13:08:42 WARNING Zope OFS.Application: Duplicate Product name:After loading Product 'Marshall' from '/data/zope/gottfried/amtsblatt_buildout/pro
ducts',
I skipped the one in '/data/zope/gottfried/amtsblatt_buildout/parts/plone'.

------
2009-10-09T13:08:42 INFO PlacelessTranslationService Applying patch
*** Patching ZPublisher.Publish with the get_request patch! ***
------
2009-10-09T13:08:42 WARNING Zope OFS.Application: Duplicate Product name:After loading Product 'PloneLanguageTool' from '/data/zope/gottfried/amtsblatt_buildout/parts/plone',
I skipped the one in '/data/zope/gottfried/amtsblatt_buildout/eggs/Products.PloneLanguageTool-3.0.3-py2.4.egg/Products'.