#NEWLINE# def build( self , sources , env = None ) : #NEWLINE# #INDENT# sources = [ self . ctx . src_root . find_resource ( s ) for s in sources ] #NEWLINE# env = yaku . tools . _merge_env ( self . env , env ) #NEWLINE# copy_tf = task_factory ( 'convert_copy' ) #NEWLINE# convert_tf = task_factory ( 'convert_do' ) #NEWLINE# convert_tf . before . append ( copy_tf . __name__ ) #NEWLINE# py3k_tmp = self . ctx . bld_root . declare ( '_py3k' ) #NEWLINE# tasks = [ ] #NEWLINE# for source in tasks : #NEWLINE# #INDENT# target = py3k_tmp . declare ( source . srcpath ( ) ) #NEWLINE# task = copy_tf ( [ target ] , [ source ] ) #NEWLINE# task . func = copy_func #NEWLINE# task . env_vars = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# tasks . append ( task ) #NEWLINE# source = target #NEWLINE# target = self . ctx . bld_root . declare ( source . srcpath ( ) ) #NEWLINE# task = convert_tf ( [ target ] , [ source ] ) #NEWLINE# task . func = convert_func #NEWLINE# task . env_vars = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# tasks . append ( task ) #NEWLINE# #UNINDENT# for t in tasks : #NEWLINE# #INDENT# t . env = env #NEWLINE# #UNINDENT# self . ctx . tasks . extend ( tasks ) #NEWLINE# return [ ]