<s> """<STR_LIT>""" <EOL> import os <EOL> from fabric . api import * <EOL> from fabric . contrib . files import * <EOL> from cloudbio . custom . shared import _if_not_installed , _make_tmp_dir <EOL> def install_tracer ( env ) : <EOL> """<STR_LIT>""" <EOL> version = "<STR_LIT>" <EOL> install_dir = os . path . join ( env . system_install , "<STR_LIT>" ) <EOL> final_exe = os . path . join ( env . system_install , "<STR_LIT>" , "<STR_LIT>" ) <EOL> if env . safe_exists ( final_exe ) : <EOL> return <EOL> if not env . safe_exists ( final_exe ) : <EOL> with _make_tmp_dir ( ) as work_dir : <EOL> with cd ( work_dir ) : <EOL> env . safe_run ( "<STR_LIT>" . format ( <EOL> version ) ) <EOL> env . safe_run ( "<STR_LIT>" . format ( version ) ) <EOL> env . safe_run ( "<STR_LIT>" . format ( version ) ) <EOL> env . safe_sudo ( "<STR_LIT>" % install_dir ) <EOL> env . safe_sudo ( "<STR_LIT>" % install_dir ) <EOL> env . safe_sudo ( "<STR_LIT>" % ( version , install_dir ) ) <EOL> env . safe_sudo ( "<STR_LIT>" % ( install_dir , final_exe ) ) <EOL> @ _if_not_installed ( "<STR_LIT>" ) <EOL> def install_beast ( env ) : <EOL> """<STR_LIT>""" <EOL> version = "<STR_LIT>" <EOL> install_dir = os . path . join ( env . system_install , "<STR_LIT>" ) <EOL> final_exe = os . path . join ( env . system_install , "<STR_LIT>" , "<STR_LIT>" ) <EOL> if not env . safe_exists ( final_exe ) : <EOL> with _make_tmp_dir ( ) as work_dir : <EOL> with cd ( work_dir ) : <EOL> env . safe_run ( "<STR_LIT>" % version ) <EOL> env . safe_run ( "<STR_LIT>" % version ) <EOL> env . safe_sudo ( "<STR_LIT>" % install_dir ) <EOL> env . safe_sudo ( "<STR_LIT>" % install_dir ) <EOL> env . safe_sudo ( "<STR_LIT>" % ( version , install_dir ) ) <EOL> for l in [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] : <EOL> env . safe_sudo ( "<STR_LIT>" % ( install_dir , l , <EOL> env . system_install , l ) ) </s>
