]> granicus.if.org Git - python/commitdiff
In 'get_platform()', handle so-called POSIX systems that don't have
authorGreg Ward <gward@python.net>
Sat, 30 Sep 2000 17:09:39 +0000 (17:09 +0000)
committerGreg Ward <gward@python.net>
Sat, 30 Sep 2000 17:09:39 +0000 (17:09 +0000)
'uname()' -- specifically NeXTSTEP.

Lib/distutils/util.py

index d52c69b46fb16f3a87b876323f4a776110257341..016119ce66f2b0c873d5815f1f5247c1ca7532fa 100644 (file)
@@ -31,7 +31,7 @@ def get_platform ():
        
     For non-POSIX platforms, currently just returns 'sys.platform'.
     """
-    if os.name != "posix":
+    if os.name != "posix" or not hasattr(os, 'uname'):
         # XXX what about the architecture? NT is Intel or Alpha,
         # Mac OS is M68k or PPC, etc.
         return sys.platform