zc.buildout problem
Hello, Following just happened. The project has KGS 3.4 versions as a base, locally I wanted to override lxml to >= 2.1.1. [...snip...] extends = http://download.zope.org/zope3.4/3.4.0/versions.cfg versions = versions [versions] lxml >= 2.1.1 [...snip...] The bin/buildout -vvvvv output was: Installing 'zc.buildout', 'setuptools'. We have the distribution that satisfies 'zc.buildout==1.1.1'. We have the distribution that satisfies 'setuptools==0.6c9'. [...snip...] Configuration data: [...snip...] [versions] [...snip...] lxml = 1.3.6 lxml > = 2.1.1 [...snip...] Getting required 'lxml==1.3.6' We have the distribution that satisfies 'lxml==1.3.6'. [...snip...] I thought the local [versions] would override the inherited ones? If I put lxml = 2.1.1 buildout nicely picks 2.1.1 Is this a bug? -- Best regards, Adam GROSZER mailto:agroszer@gmail.com -- Quote of the day: Time is nature's way of making sure that everything doesn't happen at once.
Adam GROSZER, on 2009-05-24:
Hello,
Following just happened. The project has KGS 3.4 versions as a base, locally I wanted to override lxml to >= 2.1.1.
[...snip...] extends = http://download.zope.org/zope3.4/3.4.0/versions.cfg versions = versions
[versions] lxml >= 2.1.1
Only assignment (=) is allowed here, not comparison (>=). Comparison is allowed in a few other spots, for example: recipe = my.recipe.name >= 1.0 -- Maurits van Rees | http://maurits.vanrees.org/ Work | http://zestsoftware.nl/ "This is your day, don't let them take it away." [Barlow Girl]
Maurits van Rees wrote:
Adam GROSZER, on 2009-05-24:
Hello,
Following just happened. The project has KGS 3.4 versions as a base, locally I wanted to override lxml to >= 2.1.1.
[...snip...] extends = http://download.zope.org/zope3.4/3.4.0/versions.cfg versions = versions
[versions] lxml >= 2.1.1
Only assignment (=) is allowed here, not comparison (>=).
Right. And note that it's =, not ==. A [versions] block is not a version spec, it's an explicit pin. You may also be interested in the buildout.dumppickedversions, which helps you analyse what buildout actually picked, and possibly in http://good-py.appspot.com, which helps you manage version pins in different "layers" for different platforms. For example, you could add a second line to 'extends' with another KGS layered on top of the Zope 3.4.0 one, overriding some versions and adding others.
Comparison is allowed in a few other spots, for example:
recipe = my.recipe.name >= 1.0
And in any 'eggs' line. Martin -- Author of `Professional Plone Development`, a book for developers who want to work with Plone. See http://martinaspeli.net/plone-book
participants (3)
-
Adam GROSZER -
Martin Aspeli -
Maurits van Rees