def compile_multiple(sources, options):
 sources = [os.path.abspath(source) for source in sources]
 processed = set()
 results = CompilationResultSet()
 timestamps = options.timestamps
 verbose = options.verbose
 context = None
 cwd = os.getcwd()
 for source in sources:
  if (source not in processed):
   if (context is None):
    context = options.create_context()
   output_filename = get_output_filename(source, cwd, options)
   out_of_date = context.c_file_out_of_date(source, output_filename)
   if ((not timestamps) or out_of_date):
    if verbose:
     sys.stderr.write(('Compiling %s\n' % source))
    result = run_pipeline(source, options, context=context)
    results.add(source, result)
    context = None
   processed.add(source)
 return results

def compile_multiple ( sources , options ) : sources = [ os . path . abspath ( source ) for source in sources ] processed = set ( ) results = CompilationResultSet ( ) timestamps = options . timestamps verbose = options . verbose context = None cwd = os . getcwd ( ) for source in sources : if ( source not in processed ) : if ( context is None ) : context = options . create_context ( ) output_filename = get_output_filename ( source , cwd , options ) out_of_date = context . c_file_out_of_date ( source , output_filename ) if ( ( not timestamps ) or out_of_date ) : if verbose : sys . stderr . write ( ( 'Compiling %s\n' % source ) ) result = run_pipeline ( source , options , context = context ) results . add ( source , result ) context = None processed . add ( source ) return results
compile_multiple compiles the given sequence of pyrex implementation files and returns a compilationresultset .