parameters: ()
docstring: Return the host target for the build machine, if it is one of
          the recognized targets. Otherwise, throw a NotImplementedError.
docstring_summary: Return the host target for the build machine, if it is one of
          the recognized targets. Otherwise, throw a NotImplementedError.
docstring_tokens: Return the host target for the build machine if it is one of the recognized targets . Otherwise throw a NotImplementedError .
function: def host_target():
          """
          Return the host target for the build machine, if it is one of
          the recognized targets. Otherwise, throw a NotImplementedError.
          """
          system = platform.system()
          machine = platform.machine()
  
          if system == 'Linux':
              if 'ANDROID_DATA' in os.environ:
                  if machine.startswith('armv7'):
                      return StdlibDeploymentTarget.Android.armv7
                  elif machine == 'aarch64':
                      return StdlibDeploymentTarget.Android.aarch64
                  raise NotImplementedError('Android System with architecture '
                                            '"%s" is not supported' % machine)
  
              if machine == 'x86_64':
                  return StdlibDeploymentTarget.Linux.x86_64
              elif machine == 'i686':
                  return StdlibDeploymentTarget.Linux.i686
              elif machine.startswith('armv7'):
                  # linux-armv7* is canonicalized to 'linux-armv7'
                  return StdlibDeploymentTarget.Linux.armv7
              elif machine.startswith('armv6'):
                  # linux-armv6* is canonicalized to 'linux-armv6'
                  return StdlibDeploymentTarget.Linux.armv6
              elif machine == 'aarch64':
                  return StdlibDeploymentTarget.Linux.aarch64
              elif machine == 'ppc64':
                  return StdlibDeploymentTarget.Linux.powerpc64
              elif machine == 'ppc64le':
                  return StdlibDeploymentTarget.Linux.powerpc64le
              elif machine == 's390x':
                  return StdlibDeploymentTarget.Linux.s390x
  
          elif system == 'Darwin':
              if machine == 'x86_64':
                  return StdlibDeploymentTarget.OSX.x86_64
              elif machine == 'arm64':
                  return StdlibDeploymentTarget.OSX.arm64
              elif machine == 'arm64e':
                  return StdlibDeploymentTarget.OSX.arm64e
  
          elif system == 'FreeBSD':
              if machine == 'amd64':
                  return StdlibDeploymentTarget.FreeBSD.x86_64
  
          elif system == 'OpenBSD':
              if machine == 'amd64':
                  return StdlibDeploymentTarget.OpenBSD.amd64
  
          elif system == 'CYGWIN_NT-10.0':
              if machine == 'x86_64':
                  return StdlibDeploymentTarget.Cygwin.x86_64
  
          elif system == 'Windows':
              if machine == "AMD64":
                  return StdlibDeploymentTarget.Windows.x86_64
  
          elif system == 'Haiku':
              if machine == 'x86_64':
                  return StdlibDeploymentTarget.Haiku.x86_64
  
          elif system == 'WASI':
              if machine == 'wasm32':
                  return StdlibDeploymentTarget.WASI.wasm32
  
          raise NotImplementedError('System "%s" with architecture "%s" is not '
                                    'supported' % (system, machine))
function_tokens: def host_target ( ) : system = platform . system ( ) machine = platform . machine ( ) if system == 'Linux' : if 'ANDROID_DATA' in os . environ : if machine . startswith ( 'armv7' ) : return StdlibDeploymentTarget . Android . armv7 elif machine == 'aarch64' : return StdlibDeploymentTarget . Android . aarch64 raise NotImplementedError ( 'Android System with architecture ' '"%s" is not supported' % machine ) if machine == 'x86_64' : return StdlibDeploymentTarget . Linux . x86_64 elif machine == 'i686' : return StdlibDeploymentTarget . Linux . i686 elif machine . startswith ( 'armv7' ) : # linux-armv7* is canonicalized to 'linux-armv7' return StdlibDeploymentTarget . Linux . armv7 elif machine . startswith ( 'armv6' ) : # linux-armv6* is canonicalized to 'linux-armv6' return StdlibDeploymentTarget . Linux . armv6 elif machine == 'aarch64' : return StdlibDeploymentTarget . Linux . aarch64 elif machine == 'ppc64' : return StdlibDeploymentTarget . Linux . powerpc64 elif machine == 'ppc64le' : return StdlibDeploymentTarget . Linux . powerpc64le elif machine == 's390x' : return StdlibDeploymentTarget . Linux . s390x elif system == 'Darwin' : if machine == 'x86_64' : return StdlibDeploymentTarget . OSX . x86_64 elif machine == 'arm64' : return StdlibDeploymentTarget . OSX . arm64 elif machine == 'arm64e' : return StdlibDeploymentTarget . OSX . arm64e elif system == 'FreeBSD' : if machine == 'amd64' : return StdlibDeploymentTarget . FreeBSD . x86_64 elif system == 'OpenBSD' : if machine == 'amd64' : return StdlibDeploymentTarget . OpenBSD . amd64 elif system == 'CYGWIN_NT-10.0' : if machine == 'x86_64' : return StdlibDeploymentTarget . Cygwin . x86_64 elif system == 'Windows' : if machine == "AMD64" : return StdlibDeploymentTarget . Windows . x86_64 elif system == 'Haiku' : if machine == 'x86_64' : return StdlibDeploymentTarget . Haiku . x86_64 elif system == 'WASI' : if machine == 'wasm32' : return StdlibDeploymentTarget . WASI . wasm32 raise NotImplementedError ( 'System "%s" with architecture "%s" is not ' 'supported' % ( system , machine ) )