def get_platform():
 if (os.name == 'nt'):
  prefix = ' bit ('
  i = sys.version.find(prefix)
  if (i == (-1)):
   return sys.platform
  j = sys.version.find(')', i)
  look = sys.version[(i + len(prefix)):j].lower()
  if (look == 'amd64'):
   return 'win-amd64'
  if (look == 'itanium'):
   return 'win-ia64'
  return sys.platform
 if ('_PYTHON_HOST_PLATFORM' in os.environ):
  return os.environ['_PYTHON_HOST_PLATFORM']
 if ((os.name != 'posix') or (not hasattr(os, 'uname'))):
  return sys.platform
 (osname, host, release, version, machine) = os.uname()
 osname = osname.lower().replace('/', '')
 machine = machine.replace(' ', '_')
 machine = machine.replace('/', '-')
 if (osname[:5] == 'linux'):
  return ('%s-%s' % (osname, machine))
 elif (osname[:5] == 'sunos'):
  if (release[0] >= '5'):
   osname = 'solaris'
   release = ('%d.%s' % ((int(release[0]) - 3), release[2:]))
   bitness = {2147483647: '32bit', 9223372036854775807: '64bit'}
   machine += ('.%s' % bitness[sys.maxsize])
 elif (osname[:4] == 'irix'):
  return ('%s-%s' % (osname, release))
 elif (osname[:3] == 'aix'):
  return ('%s-%s.%s' % (osname, version, release))
 elif (osname[:6] == 'cygwin'):
  osname = 'cygwin'
  rel_re = re.compile('[\\d.]+', re.ASCII)
  m = rel_re.match(release)
  if m:
   release = m.group()
 elif (osname[:6] == 'darwin'):
  import _osx_support, distutils.sysconfig
  (osname, release, machine) = _osx_support.get_platform_osx(distutils.sysconfig.get_config_vars(), osname, release, machine)
 return ('%s-%s-%s' % (osname, release, machine))

def get_platform ( ) : if ( os . name == 'nt' ) : prefix = ' bit (' i = sys . version . find ( prefix ) if ( i == ( - 1 ) ) : return sys . platform j = sys . version . find ( ')' , i ) look = sys . version [ ( i + len ( prefix ) ) : j ] . lower ( ) if ( look == 'amd64' ) : return 'win-amd64' if ( look == 'itanium' ) : return 'win-ia64' return sys . platform if ( '_PYTHON_HOST_PLATFORM' in os . environ ) : return os . environ [ '_PYTHON_HOST_PLATFORM' ] if ( ( os . name != 'posix' ) or ( not hasattr ( os , 'uname' ) ) ) : return sys . platform ( osname , host , release , version , machine ) = os . uname ( ) osname = osname . lower ( ) . replace ( '/' , '' ) machine = machine . replace ( ' ' , '_' ) machine = machine . replace ( '/' , '-' ) if ( osname [ : 5 ] == 'linux' ) : return ( '%s-%s' % ( osname , machine ) ) elif ( osname [ : 5 ] == 'sunos' ) : if ( release [ 0 ] >= '5' ) : osname = 'solaris' release = ( '%d.%s' % ( ( int ( release [ 0 ] ) - 3 ) , release [ 2 : ] ) ) bitness = { 2147483647 : '32bit' , 9223372036854775807 : '64bit' } machine += ( '.%s' % bitness [ sys . maxsize ] ) elif ( osname [ : 4 ] == 'irix' ) : return ( '%s-%s' % ( osname , release ) ) elif ( osname [ : 3 ] == 'aix' ) : return ( '%s-%s.%s' % ( osname , version , release ) ) elif ( osname [ : 6 ] == 'cygwin' ) : osname = 'cygwin' rel_re = re . compile ( '[\\d.]+' , re . ASCII ) m = rel_re . match ( release ) if m : release = m . group ( ) elif ( osname [ : 6 ] == 'darwin' ) : import _osx_support , distutils . sysconfig ( osname , release , machine ) = _osx_support . get_platform_osx ( distutils . sysconfig . get_config_vars ( ) , osname , release , machine ) return ( '%s-%s-%s' % ( osname , release , machine ) )
whats the platform? example: linux is a platform .