Re: [Distutils] Support for condition to include or exclude a buildout sections based on a Python expression

2013-01-30 Thread Jim Fulton
On Tue, Jan 29, 2013 at 6:25 PM, Nick Coghlan ncogh...@gmail.com wrote: On Wed, Jan 30, 2013 at 12:02 AM, Philippe Ombredanne pombreda...@nexb.com wrote: All: I prepared a pull request https://github.com/buildout/buildout/pull/51 to add support in Buildout 2 for conditional sections

Re: [Distutils] Support for condition to include or exclude a buildout sections based on a Python expression

2013-01-30 Thread Philippe Ombredanne
On Wed, Jan 30, 2013 at 1:39 PM, Jim Fulton j...@zope.com wrote: On Tue, Jan 29, 2013 at 6:25 PM, Nick Coghlan ncogh...@gmail.com wrote: On Wed, Jan 30, 2013 at 12:02 AM, Philippe Ombredanne pombreda...@nexb.com wrote: I prepared a pull request https://github.com/buildout/buildout/pull/51 to

Re: [Distutils] Support for condition to include or exclude a buildout sections based on a Python expression

2013-01-30 Thread Leonardo Rochael Almeida
How easy it is to know which sections are actually used during a run? Also, it would be nice to have this info on the output of buildout annotate On Wed, Jan 30, 2013 at 12:18 PM, Philippe Ombredanne pombreda...@nexb.com wrote: On Wed, Jan 30, 2013 at 1:39 PM, Jim Fulton j...@zope.com wrote:

Re: [Distutils] Support for condition to include or exclude a buildout sections based on a Python expression

2013-01-30 Thread Philippe Ombredanne
On Wed, Jan 30, 2013 at 4:53 PM, Leonardo Rochael Almeida leoroch...@gmail.com wrote: How easy it is to know which sections are actually used during a run? buildout -v (in debug) will list skipped sections Also, it would be nice to have this info on the output of buildout annotate I am not sure

Re: [Distutils] Support for condition to include or exclude a buildout sections based on a Python expression

2013-01-30 Thread Jim Fulton
On Wed, Jan 30, 2013 at 1:52 PM, Philippe Ombredanne pombreda...@nexb.com wrote: On Wed, Jan 30, 2013 at 4:53 PM, Leonardo Rochael Almeida leoroch...@gmail.com wrote: How easy it is to know which sections are actually used during a run? buildout -v (in debug) will list skipped sections That's

Re: [Distutils] Support for condition to include or exclude a buildout sections based on a Python expression

2013-01-30 Thread Philippe Ombredanne
On Wed, Jan 30, 2013 at 4:52 PM, Philippe Ombredanne pombreda...@nexb.com wrote: On Wed, Jan 30, 2013 at 4:53 PM, Leonardo Rochael Almeida leoroch...@gmail.com wrote: Also, it would be nice to have this info on the output of buildout annotate I am not sure this would be possible as the

[Distutils] Support for condition to include or exclude a buildout sections based on a Python expression

2013-01-29 Thread Philippe Ombredanne
All: I prepared a pull request https://github.com/buildout/buildout/pull/51 to add support in Buildout 2 for conditional sections expressions. The gist of this is explained here: Sections headers can contain an optional arbitrary Python expression. When the expression evaluates to false the

Re: [Distutils] Support for condition to include or exclude a buildout sections based on a Python expression

2013-01-29 Thread Nick Coghlan
On Wed, Jan 30, 2013 at 12:02 AM, Philippe Ombredanne pombreda...@nexb.com wrote: All: I prepared a pull request https://github.com/buildout/buildout/pull/51 to add support in Buildout 2 for conditional sections expressions. If you're going to do something like this, it would be good to base