summaryrefslogtreecommitdiffstats
path: root/Lib/sysconfig.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/sysconfig.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/sysconfig.py')
-rw-r--r--Lib/sysconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index b9e2faf..64cf156 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -665,7 +665,8 @@ def get_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"
import re