[Patches] [ python-Patches-404275 ] get_platform(), patch for AIX

nobody nobody@sourceforge.net
Mon, 26 Feb 2001 05:22:10 -0800


Artifact #404275, was updated on 2001-02-26 05:10
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=404275&group_id=5470

Category: distutils
Group: None
Status: Open
Priority: 5
Submitted By: Rene Liebscher
Assigned to: Nobody/Anonymous
Summary: get_platform(), patch for AIX

Initial Comment:
The platform string which is build by get_platform()
for AIX 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 , 
uname/machine seems to be a hardware/network id ? )

----------------------------------------------------------------------

Comment By: Rene Liebscher
Date: 2001-02-26 05:22

Message:
Logged In: YES 
user_id=28463

Index: distutils/util.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/util.py,v
retrieving revision 1.59
diff -c -r1.59 util.py
*** distutils/util.py   2001/01/28 12:23:32     1.59
--- distutils/util.py   2001/02/26 13:04:11
***************
*** 54,59 ****
--- 54,61 ----
          # 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)


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=404275&group_id=5470