[Distutils] [RFC] PEP 345 and PEP 386 updates

M.-A. Lemburg mal at egenix.com
Tue Oct 20 17:20:50 CEST 2009


Fred Drake wrote:
> On Tue, Oct 20, 2009 at 7:37 AM, M.-A. Lemburg <mal at egenix.com> wrote:
>> Where's the benefit of renaming the above three fields ?
> 
> I don't see any benefit here either; if we want to add fields for
> Python package or anything else, new (more explicit) field names can
> be added, without ever requiring these to be changed.
> 
> As much as having more explicit names would be nice, it's not worth
> the disruption caused by deprecation cycles, or the accompanying
> confusion.  These sorts of changes have very long uptake, while the
> clarity benefit is close to non-existent.
> 
>> I'd also remove the "Requires-" from "Requires-Python" and
>> simply use "Python" as field name.
> 
> +0
> 
>> The micro-language should provide a limited number of
>> variables to use on the conditions:
>>
>> python_version = sys.version
>> sys_platform = sys.platform
> 
> If we adopt such a micro-language (I'm reserving judgment until I've
> had more time to read the relevant PEPs carefully), I'd rather see the
> names match what's in the Python runtime more closely, probably only
> avoiding the call syntax.

We could do that as well, yes.

> This would make the examples:
> 
>   requires: pywin32; if sys.platform == 'win32'
>   requires: bar (>1.0); if sys.platform == 'win32'
>   requires: foo; if platform.machine == 'i386'
>   requires: bar; if sys.version == '2.4' or sys.version == '2.5'
>   requires: baz; if 'linux' in sys.platform
> 
>> The same notation could also be used in setup() keyword
>> parameters for the meta-data fields, e.g.
> 
> Whatever notation is adopted should be used consistently.

Agreed.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Oct 20 2009)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/


More information about the Distutils-SIG mailing list