summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/util.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-03-31 04:40:25 (GMT)
committerGreg Ward <gward@python.net>2000-03-31 04:40:25 (GMT)
commit6ce00b44405a478039d81a6c096620338b5d03a7 (patch)
tree074fdc0a1beb30835cf8dddb7e8c97db352a2f26 /Lib/distutils/util.py
parent7d51034eefbadd7574f906ca3748ac0a42298544 (diff)
downloadcpython-6ce00b44405a478039d81a6c096620338b5d03a7.zip
cpython-6ce00b44405a478039d81a6c096620338b5d03a7.tar.gz
cpython-6ce00b44405a478039d81a6c096620338b5d03a7.tar.bz2
Tweaked 'get_platform()' to include the first character of the OS release:
eg. sunos5, linux2, irix5.
Diffstat (limited to 'Lib/distutils/util.py')
-rw-r--r--Lib/distutils/util.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index 6674d0a..63b6bec 100644
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -545,10 +545,8 @@ def get_platform ():
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