Commits

Anonymous committed 6e68c7d

Tweaked 'get_platform()' to include the first character of the OS release:
eg. sunos5, linux2, irix5.

  • Participants
  • Parent commits c88c8a8
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/distutils/util.py

        i.e. "???" or "???"."""
 
     if os.name == 'posix':
-        uname = os.uname()
-        OS = uname[0]
-        arch = uname[4]
-        return "%s-%s" % (string.lower (OS), string.lower (arch))
+        (OS, _, rel, _, arch) = os.uname()
+        return "%s%c-%s" % (string.lower (OS), rel[0], string.lower (arch))
     else:
         return sys.platform