[Python-checkins] CVS: distutils/distutils util.py,1.35,1.36

Greg Ward python-dev@python.org
Sun, 18 Jun 2000 08:45:58 -0700


Update of /cvsroot/python/distutils/distutils
In directory slayer.i.sourceforge.net:/tmp/cvs-serv15428

Modified Files:
	util.py 
Log Message:
'get_platform()' now just returns 'sys.platform' on all platforms.

Index: util.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/util.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** util.py	2000/06/17 02:16:46	1.35
--- util.py	2000/06/18 15:45:55	1.36
***************
*** 45,60 ****
  def get_platform ():
      """Return a string (suitable for tacking onto directory names) that
!        identifies the current platform.  Under Unix, identifies both the OS
!        and hardware architecture, e.g. "linux-i586", "solaris-sparc",
!        "irix-mips".  For Windows and Mac OS, just returns 'sys.platform' --
!        i.e. "???" or "???"."""
! 
!     if os.name == 'posix':
!         (OS, _, rel, _, arch) = os.uname()
!         return "%s%c-%s" % (string.lower (OS), rel[0], string.lower (arch))
!     else:
!         return sys.platform
! 
! # get_platform()
  
  
--- 45,52 ----
  def get_platform ():
      """Return a string (suitable for tacking onto directory names) that
!     identifies the current platform.  Currently, this is just
!     'sys.platform'.
!     """
!     return sys.platform