[issue38021] Modify AIX platform_tag so it provides PEP425 needs

Nick Coghlan report at bugs.python.org
Sun Dec 8 07:45:59 EST 2019


Nick Coghlan <ncoghlan at gmail.com> added the comment:

There's a compatibility problem with changing the AIX distutils platform prefix from aix to AIX: any existing code that does "distutils.get_platform().startswith('aix')" will break. (There isn't any code in the standard library that does that, it all checks sys.platform() instead, but it's a reasonable assumption that there's going to be code in the wild that does a prefix check on the distutils API output).

So I think we'll want to make the distinction between the two formats based on the number of hyphens they contain, rather than changing the prefix.

I *haven't* made that change directly to the PR myself, as I want to give you a chance to consider the question first, but I do think it's a required compatibility improvement before we move ahead with this.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38021>
_______________________________________


More information about the Python-bugs-list mailing list