parameters: (target_config, disabled_modules, verbose, mname, incfile=None, test=None)
docstring: See if a module can be built and, if so, add it to the target
      configurations list of modules.  target_config is the target configuration.
      disabled_modules is the list of modules that have been explicitly disabled.
      verbose is set if the output is to be displayed.  mname is the name of the
      module.  incfile is the name of the include file (or sequence of multiple
      include files) needed for the test.  test is a C++ statement being used for
      the test.  If either incfile or test are None then there is a test program
      that needs to be run and its output captured.
docstring_summary: See if a module can be built and, if so, add it to the target
      configurations list of modules.  target_config is the target configuration.
      disabled_modules is the list of modules that have been explicitly disabled.
      verbose is set if the output is to be displayed.  mname is the name of the
      module.  incfile is the name of the include file (or sequence of multiple
      include files) needed for the test.  test is a C++ statement being used for
      the test.  If either incfile or test are None then there is a test program
      that needs to be run and its output captured.
docstring_tokens: See if a module can be built and if so add it to the target configurations list of modules . target_config is the target configuration . disabled_modules is the list of modules that have been explicitly disabled . verbose is set if the output is to be displayed . mname is the name of the module . incfile is the name of the include file ( or sequence of multiple include files ) needed for the test . test is a C ++ statement being used for the test . If either incfile or test are None then there is a test program that needs to be run and its output captured .
function: def check_module(target_config, disabled_modules, verbose, mname, incfile=None, test=None):
      """ See if a module can be built and, if so, add it to the target
      configurations list of modules.  target_config is the target configuration.
      disabled_modules is the list of modules that have been explicitly disabled.
      verbose is set if the output is to be displayed.  mname is the name of the
      module.  incfile is the name of the include file (or sequence of multiple
      include files) needed for the test.  test is a C++ statement being used for
      the test.  If either incfile or test are None then there is a test program
      that needs to be run and its output captured.
      """
  
      if mname in disabled_modules:
          return
  
      # Check the module's main .sip file exists.
      if not os.access(source_path('sip', mname, mname + 'mod.sip'), os.F_OK):
          return
  
      if verbose:
          sys.stdout.write('\n')
  
      inform("Checking to see if the %s module should be built..." % mname)
  
      if incfile is None or test is None:
          source = None
      else:
          if isinstance(incfile, str):
              incfile = [incfile]
  
          incfile = ['#include<%s>' % i for i in incfile]
  
          source = '''%s
  
  int main(int, char **)
  {
      %s;
  }
  ''' % ('\n'.join(incfile), test)
  
      test = compile_test_program(target_config, verbose, mname, source)
      if test is None:
          return
  
      # If there was an explicit test program then run it to get the disabled
      # features.
      if source is None:
          for disabled in run_test_program(mname, test, verbose):
              if disabled:
                  inform("Disabled %s feature: %s" % (mname, disabled))
                  target_config.pyqt_disabled_features.append(disabled)
  
      # Include the module in the build.
      target_config.pyqt_modules.append(mname)
function_tokens: def check_module ( target_config , disabled_modules , verbose , mname , incfile = None , test = None ) : if mname in disabled_modules : return # Check the module's main .sip file exists. if not os . access ( source_path ( 'sip' , mname , mname + 'mod.sip' ) , os . F_OK ) : return if verbose : sys . stdout . write ( '\n' ) inform ( "Checking to see if the %s module should be built..." % mname ) if incfile is None or test is None : source = None else : if isinstance ( incfile , str ) : incfile = [ incfile ] incfile = [ '#include<%s>' % i for i in incfile ] source = '''%s
  
  int main(int, char **)
  {
      %s;
  }
  ''' % ( '\n' . join ( incfile ) , test ) test = compile_test_program ( target_config , verbose , mname , source ) if test is None : return # If there was an explicit test program then run it to get the disabled # features. if source is None : for disabled in run_test_program ( mname , test , verbose ) : if disabled : inform ( "Disabled %s feature: %s" % ( mname , disabled ) ) target_config . pyqt_disabled_features . append ( disabled ) # Include the module in the build. target_config . pyqt_modules . append ( mname )