def _getPlatformString(dist=None):
 if (dist == 'bdist'):
  if (os.sys.platform == 'darwin'):
   (OSXver, junk, architecture) = platform.mac_ver()
   systemInfo = ('OSX_%s_%s' % (OSXver, architecture))
  elif (os.sys.platform == 'linux'):
   systemInfo = ('%s_%s_%s' % ('Linux', ':'.join([x for x in platform.dist() if (x != '')]), platform.release()))
  elif (os.sys.platform == 'win32'):
   ver = os.sys.getwindowsversion()
   if (len(ver[4]) > 0):
    systemInfo = ('win32_v%i.%i.%i (%s)' % (ver[0], ver[1], ver[2], ver[4]))
   else:
    systemInfo = ('win32_v%i.%i.%i' % (ver[0], ver[1], ver[2]))
  else:
   systemInfo = (platform.system() + platform.release())
 else:
  systemInfo = 'n/a'
 return systemInfo

def _getPlatformString ( dist = None ) : if ( dist == 'bdist' ) : if ( os . sys . platform == 'darwin' ) : ( OSXver , junk , architecture ) = platform . mac_ver ( ) systemInfo = ( 'OSX_%s_%s' % ( OSXver , architecture ) ) elif ( os . sys . platform == 'linux' ) : systemInfo = ( '%s_%s_%s' % ( 'Linux' , ':' . join ( [ x for x in platform . dist ( ) if ( x != '' ) ] ) , platform . release ( ) ) ) elif ( os . sys . platform == 'win32' ) : ver = os . sys . getwindowsversion ( ) if ( len ( ver [ 4 ] ) > 0 ) : systemInfo = ( 'win32_v%i.%i.%i (%s)' % ( ver [ 0 ] , ver [ 1 ] , ver [ 2 ] , ver [ 4 ] ) ) else : systemInfo = ( 'win32_v%i.%i.%i' % ( ver [ 0 ] , ver [ 1 ] , ver [ 2 ] ) ) else : systemInfo = ( platform . system ( ) + platform . release ( ) ) else : systemInfo = 'n/a' return systemInfo
if generic==true then returns empty __build_platform__ string .