#NEWLINE# def install_wheel( project_names , py_executable , search_dirs = None ) : #NEWLINE# #INDENT# if ( search_dirs is None ) : #NEWLINE# #INDENT# search_dirs = file_search_dirs ( ) #NEWLINE# #UNINDENT# wheels = find_wheels ( [ 'setuptools' , 'pip' ] , cmd ) #NEWLINE# pythonpath = os . pathsep . join ( wheels ) #NEWLINE# findlinks = ' ' . join ( search_dirs ) #NEWLINE# cmd = ( [ py_executable , '-c' , 'import sys, pip; sys.exit(pip.main(["install", "--ignore-installed"] + sys.argv[1:]))' ] + project_names ) #NEWLINE# logger . start_progress ( ( 'Installing %s...' % ', ' . join ( project_names ) ) ) #NEWLINE# logger . indent += 2 #NEWLINE# try : #NEWLINE# #INDENT# call_subprocess ( cmd , show_stdout = False , extra_env = { #NEWLINE# #INDENT# 'PYTHONPATH' : pythonpath , #NEWLINE# 'PIP_FIND_LINKS' : findlinks , #NEWLINE# 'PIP_USE_WHEEL' : '1' , #NEWLINE# 'PIP_PRE' : '1' , #NEWLINE# 'PIP_NO_INDEX' : '1' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# logger . indent -= 2 #NEWLINE# logger . end_progress ( )