[Distutils] RFC: Updating PEP 345

Tres Seaver tseaver at palladion.com
Fri Apr 10 00:40:22 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim Fulton wrote:
> On Apr 9, 2009, at 12:55 PM, Tres Seaver wrote:
> ...
>> I have backed off on the notion of overloading 'Requires:' /  
>> 'Provides:'
>> / 'Obsoletes:', following Jim's notion of deprecating them in favor of
>> new fields.  I named them 'Requires-Dist:', 'Provides-Dist:', and
>> 'Obsoletes-Dist'.
>>
>> "Stock" distutils should probably spell the arguments to
>> distutils.core.setup predictably:  'requires_dist', 'provides_dist',
>> 'obsoletes_dist'.  setuptools can treat 'install_requires' as an
>> undeprecated alias for 'requires_dist'.
> 
> 
> What is the rational for this?  I'd strongly prefer the "requires"  
> argument name to be compatible with setuptools.  Otherwise, I think  
> we'll introduce needless confusion.

I'm aiming for self-consistency within the 'PKG-INFO' field names:

 - 'Requires'
 - 'Requires-Python'
 - 'Requires-External'

The 'Obsoletes' and 'Provides' fields also need
distutils-project-oriented versions, so picking a suffix ('-Dist') which
matched for them seemed cleanest.

Add that to the fact that setuptools has no way (yet) to spell
'provides' or 'obsoletes', and it seemed to me clearer to just make
setuptools current argument an alias for the "consistent" version to be
landed in distutils.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ3nlW+gerLs4ltQ4RAqnHAKCn033qJCe7iuV0uzBWVXlnAQiqfwCgzX2F
L0rqU3Z7jC4ftYrSHnToLH4=
=umR3
-----END PGP SIGNATURE-----



More information about the Distutils-SIG mailing list