#NEWLINE# def install_conda_pkgs( anaconda , remotes , args ) : #NEWLINE# #INDENT# if ( args . gemini_version != 'latest' ) : #NEWLINE# #INDENT# req_file = ( '_conda-requirements-%s.txt' % args . gemini_version ) #NEWLINE# urllib . urlretrieve ( remotes [ 'requirements_conda' ] , filename = req_file ) #NEWLINE# pkgs = [ '--file' , req_file ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# req_file = None #NEWLINE# pkgs = [ 'gemini' ] #NEWLINE# #UNINDENT# channels = [ '-c' , 'bioconda' ] #NEWLINE# print ( ' ' . join ( ( ( [ anaconda [ 'conda' ] , 'install' , '--yes' ] + channels ) + pkgs ) ) ) #NEWLINE# subprocess . check_call ( ( ( [ anaconda [ 'conda' ] , 'install' , '--yes' ] + channels ) + pkgs ) ) #NEWLINE# if ( req_file and os . path . exists ( req_file ) ) : #NEWLINE# #INDENT# os . remove ( req_file ) #NEWLINE# #UNINDENT# return os . path . join ( anaconda [ 'dir' ] , 'bin' , 'gemini' )