diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-02-27 18:48:00 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-02-27 18:48:00 (GMT) |
commit | 9767e76808f58bae054cacb2276491d5dd6e177d (patch) | |
tree | 0b4f6c67acd38d89996e074443fdf3eece55aba9 /Lib | |
parent | 8016a4b0af65ffff08c119017610c95d6b0c1bd6 (diff) | |
download | cpython-9767e76808f58bae054cacb2276491d5dd6e177d.zip cpython-9767e76808f58bae054cacb2276491d5dd6e177d.tar.gz cpython-9767e76808f58bae054cacb2276491d5dd6e177d.tar.bz2 |
Patch #404275: generate a reasonable platform string for AIX
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/util.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index d4891b3..009ba6c 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) |