parameters: (target_config, module_config)
docstring: Check that the version of sip is good enough.  target_config is the
      target configuration.  module_config is the module configuration.
docstring_summary: Check that the version of sip is good enough.  target_config is the
      target configuration.  module_config is the module configuration.
docstring_tokens: Check that the version of sip is good enough . target_config is the target configuration . module_config is the module configuration .
function: def _check_sip(target_config, module_config):
      """ Check that the version of sip is good enough.  target_config is the
      target configuration.  module_config is the module configuration.
      """
  
      if target_config.sip is None:
          error(
                  "Make sure you have a working sip on your PATH or use the "
                  "--sip argument to explicitly specify a working sip.")
  
      pipe = os.popen(' '.join([target_config.sip, '-V']))
  
      for l in pipe:
          version_str = l.strip()
          break
      else:
          error("'%s -V' did not generate any output." % target_config.sip)
  
      pipe.close()
  
      if 'snapshot' not in version_str and 'preview' not in version_str:
          version = version_from_string(version_str)
          if version is None:
              error(
                      "'%s -V' generated unexpected output: '%s'." % (
                              target_config.sip, version_str))
  
          min_sip_version = module_config.minimum_sip_version
          if min_sip_version:
              min_version = version_from_string(min_sip_version)
              if version < min_version:
                  error(
                          "This version of %s requires sip %s or later." %
                                  (module_config.descriptive_name,
                                          min_sip_version))
  
      target_config.sip_version = version_str
function_tokens: def _check_sip ( target_config , module_config ) : if target_config . sip is None : error ( "Make sure you have a working sip on your PATH or use the " "--sip argument to explicitly specify a working sip." ) pipe = os . popen ( ' ' . join ( [ target_config . sip , '-V' ] ) ) for l in pipe : version_str = l . strip ( ) break else : error ( "'%s -V' did not generate any output." % target_config . sip ) pipe . close ( ) if 'snapshot' not in version_str and 'preview' not in version_str : version = version_from_string ( version_str ) if version is None : error ( "'%s -V' generated unexpected output: '%s'." % ( target_config . sip , version_str ) ) min_sip_version = module_config . minimum_sip_version if min_sip_version : min_version = version_from_string ( min_sip_version ) if version < min_version : error ( "This version of %s requires sip %s or later." % ( module_config . descriptive_name , min_sip_version ) ) target_config . sip_version = version_str