<s> from toolchain import CythonRecipe <EOL> from os . path import join <EOL> class KivyRecipe ( CythonRecipe ) : <EOL> version = "<STR_LIT>" <EOL> url = "<STR_LIT>" <EOL> library = "<STR_LIT>" <EOL> depends = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> pbx_frameworks = [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> pre_build_ext = True <EOL> def get_recipe_env ( self , arch ) : <EOL> env = super ( KivyRecipe , self ) . get_recipe_env ( arch ) <EOL> env [ "<STR_LIT>" ] = "<STR_LIT::>" . join ( [ <EOL> join ( self . ctx . dist_dir , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) , <EOL> join ( self . ctx . dist_dir , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) , <EOL> join ( self . ctx . dist_dir , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) , <EOL> join ( self . ctx . dist_dir , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ] ) <EOL> return env <EOL> def build_arch ( self , arch ) : <EOL> self . _patch_setup ( ) <EOL> super ( KivyRecipe , self ) . build_arch ( arch ) <EOL> def _patch_setup ( self ) : <EOL> pyconfig = join ( self . build_dir , "<STR_LIT>" ) <EOL> def _remove_line ( lines , pattern ) : <EOL> for line in lines [ : ] : <EOL> if pattern in line : <EOL> lines . remove ( line ) <EOL> with open ( pyconfig ) as fd : <EOL> lines = fd . readlines ( ) <EOL> _remove_line ( lines , "<STR_LIT>" ) <EOL> with open ( pyconfig , "<STR_LIT:wb>" ) as fd : <EOL> fd . writelines ( lines ) <EOL> recipe = KivyRecipe ( ) </s>
