summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/util.py
diff options
context:
space:
mode:
authorMichael Felt <aixtools@users.noreply.github.com>2019-12-15 14:17:53 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2019-12-15 14:17:53 (GMT)
commit39afa2d3147e4b05a1161cc90dbf09b95072c2bb (patch)
tree4e55f8d4697cc79658b89c0ccfa1d43dfb01ecb7 /Lib/distutils/util.py
parent94d2c8df1a7657015a2fcdb4c4d43392f91f8348 (diff)
downloadcpython-39afa2d3147e4b05a1161cc90dbf09b95072c2bb.zip
cpython-39afa2d3147e4b05a1161cc90dbf09b95072c2bb.tar.gz
cpython-39afa2d3147e4b05a1161cc90dbf09b95072c2bb.tar.bz2
bpo-38021: Modify AIX platform_tag so it covers PEP 425 needs (GH-17303)
Provides a richer platform tag for AIX that we expect to be sufficient for PEP 425 binary distribution identification. Any backports to earlier Python versions will be handled via setuptools. Patch by Michael Felt.
Diffstat (limited to 'Lib/distutils/util.py')
-rw-r--r--Lib/distutils/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index 17a94bc..4b002ec 100644
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -79,7 +79,8 @@ def get_host_platform():
machine += ".%s" % bitness[sys.maxsize]
# fall through to standard osname-release-machine representation
elif osname[:3] == "aix":
- return "%s-%s.%s" % (osname, version, release)
+ from _aix_support import aix_platform
+ return aix_platform()
elif osname[:6] == "cygwin":
osname = "cygwin"
rel_re = re.compile (r'[\d.]+', re.ASCII)