#NEWLINE# @ task #NEWLINE# def requirements( develop = False , upgrade = False ) : #NEWLINE# #INDENT# ' Installs all Python dependencies ' #NEWLINE# req_file = ( 'dev-requirements.txt' if develop else 'requirements.txt' ) #NEWLINE# cmd = 'pip install -r {}' . format ( req_file ) #NEWLINE# if upgrade : #NEWLINE# #INDENT# cmd += ' --upgrade' #NEWLINE# #UNINDENT# if WHEELHOUSE_PATH : #NEWLINE# #INDENT# cmd += ' --no-index --find-links={}' . format ( WHEELHOUSE_PATH ) #NEWLINE# #UNINDENT# run ( cmd , pty = True )