parameters: (argv, module_config)
docstring: Create the configuration module module.  argv is the list of command
      line arguments.  module_config is the module configuration.
docstring_summary: Create the configuration module module.  argv is the list of command
      line arguments.  module_config is the module configuration.
docstring_tokens: Create the configuration module module . argv is the list of command line arguments . module_config is the module configuration .
function: def _main(argv, module_config):
      """ Create the configuration module module.  argv is the list of command
      line arguments.  module_config is the module configuration.
      """
  
      # Create the default target configuration.
      target_config = _TargetConfiguration(module_config)
  
      # Parse the command line.
      p = _create_optparser(target_config, module_config)
      opts, args = p.parse_args()
  
      if args:
          p.print_help()
          sys.exit(2)
  
      target_config.apply_pre_options(opts)
  
      # Query qmake for the basic configuration information.
      target_config.get_qt_configuration(opts)
  
      # Update the target configuration.
      if module_config.user_configuration_file_is_supported:
          config_file = opts.config_file
      else:
          config_file = None
  
      if config_file is not None:
          target_config.update_from_configuration_file(config_file)
      else:
          target_config.apply_sysroot()
  
      target_config.apply_post_options(opts, module_config)
  
      if target_config.pyqt_package is not None:
          if target_config.pyqt_sip_flags is None:
              target_config.introspect_pyqt(module_config)
  
      # Check SIP is new enough.
      _check_sip(target_config, module_config)
  
      # Perform any module specific checks now that all other information has
      # been captured.
      module_config.check_module(target_config)
  
      # Tell the user what's been found.
      _inform_user(target_config, module_config)
  
      # Allow for module specific hacks.
      module_config.pre_code_generation(target_config)
  
      # Generate the code.
      _generate_code(target_config, opts, module_config)
function_tokens: def _main ( argv , module_config ) : # Create the default target configuration. target_config = _TargetConfiguration ( module_config ) # Parse the command line. p = _create_optparser ( target_config , module_config ) opts , args = p . parse_args ( ) if args : p . print_help ( ) sys . exit ( 2 ) target_config . apply_pre_options ( opts ) # Query qmake for the basic configuration information. target_config . get_qt_configuration ( opts ) # Update the target configuration. if module_config . user_configuration_file_is_supported : config_file = opts . config_file else : config_file = None if config_file is not None : target_config . update_from_configuration_file ( config_file ) else : target_config . apply_sysroot ( ) target_config . apply_post_options ( opts , module_config ) if target_config . pyqt_package is not None : if target_config . pyqt_sip_flags is None : target_config . introspect_pyqt ( module_config ) # Check SIP is new enough. _check_sip ( target_config , module_config ) # Perform any module specific checks now that all other information has # been captured. module_config . check_module ( target_config ) # Tell the user what's been found. _inform_user ( target_config , module_config ) # Allow for module specific hacks. module_config . pre_code_generation ( target_config ) # Generate the code. _generate_code ( target_config , opts , module_config )