def build_FastTree():
 status('Building FastTree...')
 if (not app_available('gcc')):
  status('GCC not installed, so cannot build FastTree.\n')
  return
 if download_file('http://www.microbesonline.org/fasttree/FastTree-2.1.3.c', 'scripts/', 'FastTree.c'):
  status('Could not download FastTree, so not installing it.\n')
  return
 cwd = getcwd()
 scripts = join(cwd, 'scripts')
 try:
  chdir(scripts)
  if (not system_call('gcc -Wall -O3 -finline-functions -funroll-loops -o FastTree FastTree.c -lm', 'build FastTree')):
   return
  status('FastTree built.\n')
 finally:
  remove('FastTree.c')
  chdir(cwd)

def build_FastTree ( ) : status ( 'Building FastTree...' ) if ( not app_available ( 'gcc' ) ) : status ( 'GCC not installed, so cannot build FastTree.\n' ) return if download_file ( 'http://www.microbesonline.org/fasttree/FastTree-2.1.3.c' , 'scripts/' , 'FastTree.c' ) : status ( 'Could not download FastTree, so not installing it.\n' ) return cwd = getcwd ( ) scripts = join ( cwd , 'scripts' ) try : chdir ( scripts ) if ( not system_call ( 'gcc -Wall -O3 -finline-functions -funroll-loops -o FastTree FastTree.c -lm' , 'build FastTree' ) ) : return status ( 'FastTree built.\n' ) finally : remove ( 'FastTree.c' ) chdir ( cwd )
download and build fasttree then copy it to the scripts directory .