ó
Ð²Ebc           @   s±   d  d l  m Z d  d l m Z d  d l m Z d  d l m Z e ru d  d l m	 Z	 m
 Z
 d d l m Z m Z n  e e ƒ Z d e f d	 „  ƒ  YZ d
 e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   defaultdict(   t	   getLogger(   t   BaseReporter(   t   MYPY_CHECK_RUNNING(   t   Anyt   DefaultDicti   (   t	   Candidatet   Requirementt   PipReporterc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s1   t  t ƒ |  _ i d d 6d d 6d d 6|  _ d  S(   Ns   pip is looking at multiple versions of {package_name} to determine which version is compatible with other requirements. This could take a while.i   i   s"  This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtrackingi   (   R    t   intt   backtracks_by_packaget   _messages_at_backtrack(   t   self(    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyt   __init__   s
    c         C   si   |  j  | j c d 7<|  j  | j } | |  j k r9 d  S|  j | } t j d | j d | j ƒ ƒ d  S(   Ni   s   INFO: %st   package_name(   R
   t   nameR   t   loggert   infot   format(   R   t	   candidatet   countt   message(    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyt   backtracking+   s    (   t   __name__t
   __module__R   R   (    (    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyR      s   	t   PipDebuggingReporterc           B   sM   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   s9   A reporter that does an info log for every event it sees.c         C   s   t  j d ƒ d  S(   Ns   Reporter.starting()(   R   R   (   R   (    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyt   starting:   s    c         C   s   t  j d | ƒ d  S(   Ns   Reporter.starting_round(%r)(   R   R   (   R   t   index(    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyt   starting_round>   s    c         C   s   t  j d | ƒ d  S(   Ns    Reporter.ending_round(%r, state)(   R   R   (   R   R   t   state(    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyt   ending_roundB   s    c         C   s   t  j d | ƒ d  S(   Ns   Reporter.ending(%r)(   R   R   (   R   R   (    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyt   endingF   s    c         C   s   t  j d | | ƒ d  S(   Ns#   Reporter.adding_requirement(%r, %r)(   R   R   (   R   t   requirementt   parent(    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyt   adding_requirementJ   s    c         C   s   t  j d | ƒ d  S(   Ns   Reporter.backtracking(%r)(   R   R   (   R   R   (    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyR   N   s    c         C   s   t  j d | ƒ d  S(   Ns   Reporter.pinning(%r)(   R   R   (   R   R   (    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyt   pinningR   s    (
   R   R   t   __doc__R   R   R   R   R"   R   R#   (    (    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyR   7   s   						N(   t   collectionsR    t   loggingR   t    pip._vendor.resolvelib.reportersR   t   pip._internal.utils.typingR   t   typingR   R   t   baseR   R   R   R   R   R   (    (    (    sI   /tmp/pip-build-UPPWic/pip/pip/_internal/resolution/resolvelib/reporter.pyt   <module>   s   &