]> granicus.if.org Git - python/commitdiff
Patch #404275: generate a reasonable platform string for AIX
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 27 Feb 2001 18:48:00 +0000 (18:48 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 27 Feb 2001 18:48:00 +0000 (18:48 +0000)
Lib/distutils/util.py

index d4891b3c2add01ed063b528726e99776ece3f77b..009ba6cb93c39d47192e531534b075fca2e96401 100644 (file)
@@ -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)