parameters: (version, name)
docstring: Raises errors or warns if called with an incompatible Wheel-Version.
  
      Pip should refuse to install a Wheel-Version that's a major series
      ahead of what it's compatible with (e.g 2.0 > 1.1); and warn when
      installing a version only minor version ahead (e.g 1.2 > 1.1).
  
      version: a 2-tuple representing a Wheel-Version (Major, Minor)
      name: name of wheel or package to raise exception about
  
      :raises UnsupportedWheel: when an incompatible Wheel-Version is given
docstring_summary: Raises errors or warns if called with an incompatible Wheel-Version.
docstring_tokens: Raises errors or warns if called with an incompatible Wheel - Version .
function: def check_compatibility(version, name):
      # type: (Optional[Tuple[int, ...]], str) -> None
      """
      Raises errors or warns if called with an incompatible Wheel-Version.
  
      Pip should refuse to install a Wheel-Version that's a major series
      ahead of what it's compatible with (e.g 2.0 > 1.1); and warn when
      installing a version only minor version ahead (e.g 1.2 > 1.1).
  
      version: a 2-tuple representing a Wheel-Version (Major, Minor)
      name: name of wheel or package to raise exception about
  
      :raises UnsupportedWheel: when an incompatible Wheel-Version is given
      """
      if not version:
          raise UnsupportedWheel(
              "%s is in an unsupported or invalid wheel" % name
          )
      if version[0] > VERSION_COMPATIBLE[0]:
          raise UnsupportedWheel(
              "%s's Wheel-Version (%s) is not compatible with this version "
              "of pip" % (name, '.'.join(map(str, version)))
          )
      elif version > VERSION_COMPATIBLE:
          logger.warning(
              'Installing from a newer Wheel-Version (%s)',
              '.'.join(map(str, version)),
          )
function_tokens: def check_compatibility ( version , name ) : # type: (Optional[Tuple[int, ...]], str) -> None if not version : raise UnsupportedWheel ( "%s is in an unsupported or invalid wheel" % name ) if version [ 0 ] > VERSION_COMPATIBLE [ 0 ] : raise UnsupportedWheel ( "%s's Wheel-Version (%s) is not compatible with this version " "of pip" % ( name , '.' . join ( map ( str , version ) ) ) ) elif version > VERSION_COMPATIBLE : logger . warning ( 'Installing from a newer Wheel-Version (%s)' , '.' . join ( map ( str , version ) ) , )