Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

zc.buildout problem

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


agroszer at gmail

May 24, 2009, 2:15 AM

Post #1 of 3 (588 views)
Permalink
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 [at] gmail
--
Quote of the day:
Time is nature's way of making sure that everything doesn't happen at once.

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


m.van.rees at zestsoftware

May 24, 2009, 4:28 AM

Post #2 of 3 (519 views)
Permalink
Re: zc.buildout problem [In reply to]

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]

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


optilude+lists at gmail

May 24, 2009, 9:24 AM

Post #3 of 3 (510 views)
Permalink
Re: zc.buildout problem [In reply to]

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

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.