#NEWLINE# def get_pip_requirement_set( self , arguments , use_remote_index , use_wheels = False ) : #NEWLINE# #INDENT# '\n        Get the unpacked requirement(s) specified by the caller by running pip.\n\n        :param arguments: The command line arguments to ``pip install ...`` (a\n                          list of strings).\n        :param use_remote_index: A boolean indicating whether pip is allowed to\n                                 connect to the main package index\n                                 (http://pypi.python.org by default).\n        :param use_wheels: Whether pip and pip-accel are allowed to use wheels_\n                           (:data:`False` by default for backwards compatibility\n                           with callers that use pip-accel as a Python API).\n        :returns: A :class:`pip.req.RequirementSet` object created by pip.\n        :raises: Any exceptions raised by pip.\n        ' #NEWLINE# command_line = [ ] #NEWLINE# command_line . append ( ( '--download=%s' % self . config . source_index ) ) #NEWLINE# command_line . append ( ( '--find-links=%s' % create_file_url ( self . config . source_index ) ) ) #NEWLINE# if ( ( not use_wheels ) and self . arguments_allow_wheels ( arguments ) ) : #NEWLINE# #INDENT# command_line . append ( '--no-binary=:all:' ) #NEWLINE# #UNINDENT# if ( not use_remote_index ) : #NEWLINE# #INDENT# command_line . append ( '--no-index' ) #NEWLINE# #UNINDENT# command_line . append ( '--no-clean' ) #NEWLINE# command_line . append ( ( '--build-directory=%s' % self . build_directory ) ) #NEWLINE# command_line . extend ( arguments ) #NEWLINE# logger . info ( 'Executing command: pip install %s' , ' ' . join ( command_line ) ) #NEWLINE# self . clear_build_directory ( ) #NEWLINE# os . environ . setdefault ( 'PIP_EXISTS_ACTION' , 'w' ) #NEWLINE# command = InstallCommand ( ) #NEWLINE# ( opts , args ) = command . parse_args ( use_wheels ) #NEWLINE# if ( not opts . ignore_installed ) : #NEWLINE# #INDENT# opts = AttributeOverrides ( opts , ignore_installed = False ) #NEWLINE# #UNINDENT# requirement_set = command . run ( opts , args ) #NEWLINE# sys . stdout . flush ( ) #NEWLINE# if ( requirement_set is None ) : #NEWLINE# #INDENT# raise NothingToDoError ( "\n                pip didn't generate a requirement set, most likely you\n                specified an empty requirements file?\n            " ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . transform_pip_requirement_set ( requirement_set )