a lj @spddlmZddlmZddlmZmZddlmZddl m Z m Z ee Z GdddeZGd d d eZd S) ) defaultdict) getLogger)Any DefaultDict) BaseReporter) Candidate Requirementc@s*eZdZddddZeddddZdS) PipReporterNreturncCstt|_dddd|_dS)Nzpip is looking at multiple versions of {package_name} to determine which version is compatible with other requirements. This could take a while.zThis is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.)r )rintbacktracks_by_package_messages_at_backtrackselfrP/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/reporter.py__init__ s  zPipReporter.__init__ candidater cCsR|j|jd7<|j|j}||jvr.dS|j|}td|j|jddS)NrzINFO: %s)Z package_name)rnamerloggerinfoformat)rrcountmessagerrr backtracking#s    zPipReporter.backtracking)__name__ __module__ __qualname__rrrrrrrr sr c@seZdZdZddddZeddddZeedd d d Zedd d dZ e e ddddZ e ddddZ e ddddZdS)PipDebuggingReporterz9A reporter that does an info log for every event it sees.Nr cCstddS)NzReporter.starting()rrrrrrstarting1szPipDebuggingReporter.starting)indexr cCstd|dS)NzReporter.starting_round(%r)r$)rr&rrrstarting_round4sz#PipDebuggingReporter.starting_round)r&stater cCstd|dS)Nz Reporter.ending_round(%r, state)r$)rr&r(rrr ending_round7sz!PipDebuggingReporter.ending_round)r(r cCstd|dS)NzReporter.ending(%r)r$)rr(rrrending:szPipDebuggingReporter.ending) requirementparentr cCstd||dS)Nz#Reporter.adding_requirement(%r, %r)r$)rr+r,rrradding_requirement=sz'PipDebuggingReporter.adding_requirementrcCstd|dS)NzReporter.backtracking(%r)r$rrrrrr@sz!PipDebuggingReporter.backtrackingcCstd|dS)NzReporter.pinning(%r)r$r.rrrpinningCszPipDebuggingReporter.pinning)r r!r"__doc__r%rr'rr)r*r rr-rr/rrrrr#.sr#N) collectionsrZloggingrtypingrrZ pip._vendor.resolvelib.reportersrbaserr r rr r#rrrrs   "