<s> from pythonforandroid . toolchain import Recipe , shprint , current_directory , info , warning <EOL> from os . path import join , exists <EOL> from os import chdir <EOL> import sh <EOL> class Hostpython3Recipe ( Recipe ) : <EOL> version = '<STR_LIT>' <EOL> url = '<STR_LIT>' <EOL> name = '<STR_LIT>' <EOL> conflicts = [ '<STR_LIT>' ] <EOL> def build_arch ( self , arch ) : <EOL> warning ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> with current_directory ( self . get_build_dir ( arch . arch ) ) : <EOL> if exists ( '<STR_LIT>' ) : <EOL> info ( '<STR_LIT>' ) <EOL> self . ctx . hostpython = join ( self . get_build_dir ( '<STR_LIT>' ) , <EOL> '<STR_LIT>' ) <EOL> self . ctx . hostpgen = join ( self . get_build_dir ( '<STR_LIT>' ) , <EOL> '<STR_LIT>' ) <EOL> return <EOL> configure = sh . Command ( '<STR_LIT>' ) <EOL> shprint ( configure ) <EOL> shprint ( sh . make , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ) <EOL> shprint ( sh . mv , join ( '<STR_LIT>' , '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> if exists ( '<STR_LIT>' ) : <EOL> pass <EOL> else : <EOL> warning ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> exit ( <NUM_LIT:1> ) <EOL> self . ctx . hostpython = join ( self . get_build_dir ( arch . arch ) , '<STR_LIT>' ) <EOL> self . ctx . hostpgen = join ( self . get_build_dir ( arch . arch ) , '<STR_LIT>' ) <EOL> recipe = Hostpython3Recipe ( ) </s>
