[Distutils] get_platform(), patch for AIX

Rene Liebscher R.Liebscher@gmx.de
Wed Nov 15 09:12:01 2000


This is a multi-part message in MIME format.
--------------7D25F63D8B25E024A6D30BC0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

The platform string which is build by get_platform()
doesnt make much sense.

Therefore I provide here a patch which brings up
a better string.
(eg. for AIX 4.3 -> aix-4.3
not aix-3-XXXXXXXXXXXX , machine seems to be a 
hardware id ? )


kind regards
Rene Liebscher
--------------7D25F63D8B25E024A6D30BC0
Content-Type: text/plain; charset=us-ascii;
 name="aix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="aix.patch"

diff -BurN --minimal --exclude=*.pyc distutils.orig/distutils/util.py distutils.patchedx/distutils/util.py
--- distutils.orig/distutils/util.py	Mon Oct 16 11:37:39 2000
+++ distutils.patchedx/distutils/util.py	Wed Nov 15 16:21:24 2000
@@ -54,6 +54,8 @@
         # 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)
             
     return "%s-%s-%s" % (osname, release, machine)
 

--------------7D25F63D8B25E024A6D30BC0--