[Distutils] PEP 508, environment markers & the possibility of Python 3.10
Nick Coghlan
ncoghlan at gmail.com
Sun Jan 28 00:44:51 EST 2018
Hi folks,
In https://github.com/python/peps/issues/560, a user pointed out that
the current definition of python_version in PEP 508 assumes
single-digit major and minor version numbers:
platform.python_version()[:3]
There's a reasonable chance we'll see 3.10 rather than 4.0 in a few
years time, at which point that definition would break.
The suggested fix is to amend that definition to be:
".".join(platform.python_version_tuple()[:2])
This seems like a good suggestion to me, so my inclination is to
handle this in a similar way to
https://www.python.org/dev/peps/pep-0440/#summary-of-changes-to-pep-440:
fix it in place, and add a section at the end of the PEP listing the
post-publication changes.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Distutils-SIG
mailing list