[Distutils] PEP-426 environment markers [was: Re: 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: All: I prepared a pull request

Re: [Distutils] PEP-426 environment markers [was: Re: 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 9:00 AM, Philippe Ombredanne pombreda...@nexb.com wrote: 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

Re: [Distutils] PEP-426 environment markers [was: Re: Support for condition to include or exclude a buildout sections based on a Python expression]

2013-01-30 Thread Daniel Holth
My markerlib implements the PEP. https://bitbucket.org/dholth/markerlib The parsing is simpler than you might expect. There is no monkey patching. It is a (non-API) part of distribute since about last August. ___ Distutils-SIG maillist -

Re: [Distutils] PEP-426 environment markers [was: Re: 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 3:36 PM, Jim Fulton j...@zope.com wrote: On Wed, Jan 30, 2013 at 9:00 AM, Philippe Ombredanne pombreda...@nexb.com wrote: A python implementation of the proposed draft would have to monkey patch standard functions (platform.version, platform.machine and

Re: [Distutils] PEP-426 environment markers [was: Re: 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 9:46 AM, Daniel Holth dho...@gmail.com wrote: My markerlib implements the PEP. https://bitbucket.org/dholth/markerlib The parsing is simpler than you might expect. There is no monkey patching. It is a (non-API) part of distribute since about last August. But we're not

Re: [Distutils] PEP-426 environment markers [was: Re: Support for condition to include or exclude a buildout sections based on a Python expression]

2013-01-30 Thread Daniel Holth
On Wed, Jan 30, 2013 at 9:58 AM, Jim Fulton j...@zope.com wrote: On Wed, Jan 30, 2013 at 9:46 AM, Daniel Holth dho...@gmail.com wrote: My markerlib implements the PEP. https://bitbucket.org/dholth/markerlib The parsing is simpler than you might expect. There is no monkey patching. It

Re: [Distutils] PEP-426 environment markers [was: Re: Support for condition to include or exclude a buildout sections based on a Python expression]

2013-01-30 Thread Daniel Holth
One more thing: sys.platform != 'win32' is how you write not windows On Wed, Jan 30, 2013 at 10:13 AM, Daniel Holth dho...@gmail.com wrote: On Wed, Jan 30, 2013 at 9:58 AM, Jim Fulton j...@zope.com wrote: On Wed, Jan 30, 2013 at 9:46 AM, Daniel Holth dho...@gmail.com wrote: My markerlib

Re: [Distutils] PEP-426 environment markers [was: Re: Support for condition to include or exclude a buildout sections based on a Python expression]

2013-01-30 Thread Leonardo Rochael Almeida
Even on 64 bit windows? On Wed, Jan 30, 2013 at 2:37 PM, Daniel Holth dho...@gmail.com wrote: One more thing: sys.platform != 'win32' is how you write not windows On Wed, Jan 30, 2013 at 10:13 AM, Daniel Holth dho...@gmail.com wrote: On Wed, Jan 30, 2013 at 9:58 AM, Jim Fulton j...@zope.com

Re: [Distutils] PEP-426 environment markers [was: Re: Support for condition to include or exclude a buildout sections based on a Python expression]

2013-01-30 Thread Daniel Holth
Yes even on 64 bit Windows On Jan 30, 2013 12:18 PM, Leonardo Rochael Almeida leoroch...@gmail.com wrote: Even on 64 bit windows? On Wed, Jan 30, 2013 at 2:37 PM, Daniel Holth dho...@gmail.com wrote: One more thing: sys.platform != 'win32' is how you write not windows On Wed, Jan 30,