From: Andrew M. Kuchling Date: Tue, 27 Feb 2001 18:48:00 +0000 (+0000) Subject: Patch #404275: generate a reasonable platform string for AIX X-Git-Tag: v2.1b1~172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9767e76808f58bae054cacb2276491d5dd6e177d;p=python Patch #404275: generate a reasonable platform string for AIX --- diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index d4891b3c2a..009ba6cb93 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -54,6 +54,8 @@ def get_platform (): # fall through to standard osname-release-machine representation elif osname[:4] == "irix": # could be "irix64"! return "%s-%s" % (osname, release) + elif osname[:3] == "aix": + return "%s-%s.%s" % (osname, version, release) elif osname[:6] == "cygwin": rel_re = re.compile (r'[\d.]+') m = rel_re.match(release)