def install_miniconda(prefix='~/miniconda', use_sudo=False, keep_installer=False):
 with cd('/tmp'):
  if (not fabtools.files.is_file('Miniconda-latest-Linux-x86_64.sh')):
   download(MINICONDA_URL)
  command = ('bash Miniconda-latest-Linux-x86_64.sh -b -p %(prefix)s' % locals())
  if use_sudo:
   run_as_root(command)
  else:
   run(command)
  files.append('~/.bash_profile', ('export PATH=%(prefix)s/bin:$PATH' % locals()))
  if (not keep_installer):
   run('rm -f Miniconda-latest-Linux-x86_64.sh')

def install_miniconda ( prefix = '~/miniconda' , use_sudo = False , keep_installer = False ) : with cd ( '/tmp' ) : if ( not fabtools . files . is_file ( 'Miniconda-latest-Linux-x86_64.sh' ) ) : download ( MINICONDA_URL ) command = ( 'bash Miniconda-latest-Linux-x86_64.sh -b -p %(prefix)s' % locals ( ) ) if use_sudo : run_as_root ( command ) else : run ( command ) files . append ( '~/.bash_profile' , ( 'export PATH=%(prefix)s/bin:$PATH' % locals ( ) ) ) if ( not keep_installer ) : run ( 'rm -f Miniconda-latest-Linux-x86_64.sh' )
install the latest version of miniconda_ .