[Distutils] [Python-Dev] accept the wheel PEPs 425, 426, 427

Daniel Holth dholth at gmail.com
Wed Oct 31 13:38:08 CET 2012

On Wed, Oct 24, 2012 at 7:04 AM, Ronald Oussoren <ronaldoussoren at mac.com> wrote:
> On 18 Oct, 2012, at 19:29, Daniel Holth <dholth at gmail.com> wrote:
>> I'd like to submit the Wheel PEPs 425 (filename metadata), 426
>> (Metadata 1.3), and 427 (wheel itself) for acceptance. The format has
>> been stable since May and we are preparing a patch to support it in
>> pip, but we need to earn consensus before including it in the most
>> widely used installer.
> PEP 425:
> * "The version is py_version_nodot. CPython gets away with no dot, but if one is needed the underscore _ is used instead"
>    I don't particularly like replacing dots by underscores. That needed because you use the dot character in compressed tag sets, but why not use a comma to separate items in the compressed tag set?
> * "The platform tag is simply distutils.util.get_platform() with all hyphens - and periods . replaced with underscore _."
>    Why the replacement?  The need for replacement could be avoided by using a different separator between elements of a tag (for example "~" or "+"), and furthermore the platform tag is at a know
>    location, and hence the use of hyphens in the platform tag is harmless (use "python_tag, abi_tag, platform_tag = tag.split('-', 2)" to split the tag into its elements.
> * "compressed tag sets"
>    Using '"," instead of "." to separate elements of the tag set takes away the need to replace dots in tag elements, and seems more natural to me (you'd also use comma to separate the elements
>    when you write them down in prose or python code.

I can't get excited about changing the convention. The
hyphen-to-underscore folding and - separated file parts is the same as
what setuptools uses. _ folding for . as well in the compat tags? It
may not be beautiful but it is very unlikely to cause ambiguity.

More information about the Distutils-SIG mailing list