#NEWLINE# def download_dependencies( self ) : #NEWLINE# #INDENT# 'Download dependencies from `$deps_dir/download-requires`.' #NEWLINE# sh . mkdirslist ( self . download_dir , tracewriter = self . tracewriter ) #NEWLINE# pips_to_download = self . _filter_download_requires ( ) #NEWLINE# sh . write_file ( self . download_requires_filename , '\n' . join ( [ str ( req ) for req in pips_to_download ] ) ) #NEWLINE# if ( not pips_to_download ) : #NEWLINE# #INDENT# return ( [ ] , [ ] ) #NEWLINE# #UNINDENT# if self . _requirements_satisfied ( pips_to_download , self . download_dir ) : #NEWLINE# #INDENT# LOG . info ( 'All python dependencies have been already downloaded' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# utils . retry ( self . retries , self . retry_delay , self . _try_download , pips_to_download ) #NEWLINE# #UNINDENT# pips_downloaded = [ pip_helper . extract_requirement ( p ) for p in pips_to_download ] #NEWLINE# what_downloaded = self . _examine_download_dir ( pips_downloaded , self . download_dir ) #NEWLINE# return ( pips_downloaded , what_downloaded )