B
    Kkd'	                 @   s   d dl mZ d dlZddlmZ ddlmZ ddlmZ d dl	m
Z
 d dlmZ erdd d	lmZmZ d
dddgZeeZdddZdS )    )absolute_importN   )InstallRequirement)RequirementSet)parse_requirements)
indent_log)MYPY_CHECK_RUNNING)ListSequencer   r   r   install_given_reqs c       	      O   s   | r t dddd | D  t  x| D ]}|jrdt d|j t  |jdd}W dQ R X y|j||f|| W n0 tk
r   |jo|j }|r|	   Y nX |jo|j}|r|
  |  q.W W dQ R X | S )	zu
    Install everything in the given list.

    (to be called after having downloaded and unpacked the packages)
    z!Installing collected packages: %sz, c             S   s   g | ]
}|j qS r   )name).0reqr   r   ;/tmp/pip-install-gxxfd9b7/pip/pip/_internal/req/__init__.py
<listcomp>&   s    z&install_given_reqs.<locals>.<listcomp>zFound existing installation: %sT)auto_confirmN)loggerinfojoinr   conflicts_with	uninstallinstall	Exceptioninstall_succeededrollbackcommitremove_temporary_source)	
to_installinstall_optionsglobal_optionsargskwargsrequirementuninstalled_pathsetshould_rollbackshould_commitr   r   r   r      s>    

)r   )
__future__r   loggingreq_installr   req_setr   req_filer   pip._internal.utils.loggingr   pip._internal.utils.typingr   typingr	   r
   __all__	getLogger__name__r   r   r   r   r   r   <module>   s   
