parameters: (target_config, opts, module_config)
docstring: Generate the code for the QScintilla module.  target_config is the
      target configuration.  opts are the command line options.  module_config is
      the module configuration.
docstring_summary: Generate the code for the QScintilla module.  target_config is the
      target configuration.  opts are the command line options.  module_config is
      the module configuration.
docstring_tokens: Generate the code for the QScintilla module . target_config is the target configuration . opts are the command line options . module_config is the module configuration .
function: def _generate_code(target_config, opts, module_config):
      """ Generate the code for the QScintilla module.  target_config is the
      target configuration.  opts are the command line options.  module_config is
      the module configuration.
      """
  
      inform(
              "Generating the C++ source for the %s module..." %
                      module_config.name)
  
      # Build the SIP command line.
      argv = [quote(target_config.sip)]
  
      # Add the module-specific flags.
      argv.extend(module_config.get_sip_flags(target_config))
  
      if target_config.pyqt_package is not None:
          # Get the flags used for the main PyQt module.
          argv.extend(target_config.pyqt_sip_flags.split())
  
          # Add PyQt's .sip files to the search path.
          argv.append('-I')
          argv.append(target_config.pyqt_sip_dir)
  
      if module_config.qscintilla_api_file and target_config.api_dir != '':
          # Generate the API file.
          argv.append('-a')
          argv.append(module_config.qscintilla_api_file + '.api')
  
      if target_config.prot_is_public:
          argv.append('-P');
  
      if opts.no_timestamp:
          argv.append('-T')
  
      if not opts.no_docstrings:
          argv.append('-o');
  
      if opts.concat:
          argv.append('-j')
          argv.append(str(opts.split))
  
      if opts.tracing:
          argv.append('-r')
  
      argv.append('-c')
      argv.append('.')
  
      argv.append(module_config.get_sip_file(target_config))
  
      check_file = 'sipAPI%s.h' % module_config.name
      _remove_file(check_file)
  
      _run_command(' '.join(argv), opts.verbose)
  
      if not os.access(check_file, os.F_OK):
          error("Unable to create the C++ code.")
  
      # Generate the .pro file.
      pro = _generate_pro(target_config, opts, module_config)
  
      # Generate the Makefile.
      _run_qmake(target_config, opts.verbose, pro, module_config)
function_tokens: def _generate_code ( target_config , opts , module_config ) : inform ( "Generating the C++ source for the %s module..." % module_config . name ) # Build the SIP command line. argv = [ quote ( target_config . sip ) ] # Add the module-specific flags. argv . extend ( module_config . get_sip_flags ( target_config ) ) if target_config . pyqt_package is not None : # Get the flags used for the main PyQt module. argv . extend ( target_config . pyqt_sip_flags . split ( ) ) # Add PyQt's .sip files to the search path. argv . append ( '-I' ) argv . append ( target_config . pyqt_sip_dir ) if module_config . qscintilla_api_file and target_config . api_dir != '' : # Generate the API file. argv . append ( '-a' ) argv . append ( module_config . qscintilla_api_file + '.api' ) if target_config . prot_is_public : argv . append ( '-P' ) if opts . no_timestamp : argv . append ( '-T' ) if not opts . no_docstrings : argv . append ( '-o' ) if opts . concat : argv . append ( '-j' ) argv . append ( str ( opts . split ) ) if opts . tracing : argv . append ( '-r' ) argv . append ( '-c' ) argv . append ( '.' ) argv . append ( module_config . get_sip_file ( target_config ) ) check_file = 'sipAPI%s.h' % module_config . name _remove_file ( check_file ) _run_command ( ' ' . join ( argv ) , opts . verbose ) if not os . access ( check_file , os . F_OK ) : error ( "Unable to create the C++ code." ) # Generate the .pro file. pro = _generate_pro ( target_config , opts , module_config ) # Generate the Makefile. _run_qmake ( target_config , opts . verbose , pro , module_config )