kgh1ddlZddlZddlZddlZddlmZmZmZmZm Z m Z m Z ddl m Z ddlmZmZmZddlmZddlmZddlmZddlmZdd lmZdd lmZdd lmZdd l m!Z!dd l"m#Z#ddl$m%Z%m&Z&ddl'm(Z(ddl)m*Z*m+Z+ddl,m-Z-ddl.m/Z/m0Z0ddl1m2Z2erddl3m4Z5e5e0e/e6fZ4ej7e8Z9Gdde%Zddde e6deee6e:ffdZ;de e6e!fdeee6e:fde e:e6ffdZonly-if-neededto-satisfy-onlyeagerNpreparerfinder wheel_cachemake_install_req use_user_siteignore_dependenciesignore_installedignore_requires_pythonforce_reinstallupgrade_strategypy_version_info.c t| |jvsJt|||||| |||  |_||_| |_d|_dS)N) r(r'r*r)r+r/r-r.r1)super__init___allowed_strategiesr!factoryr,r0_result) selfr'r(r)r*r+r,r-r.r/r0r1 __class__s /builddir/build/BUILD/imunify360-venv-2.6.0/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.pyr4zResolver.__init__*s} 4#;;;;;-#'+-#9+     $7 0)- root_reqscheck_supported_wheelsreturnc z|j|}t|j|j|j|j|j}dtjvrt}nt}t||} d}| |j |x}|_nT#t$r6} |jt#d| |j} | | d} ~ wt$$r t&dwxYwt)|} t+|jdD]} | } | | j| jkrt7jt:5| | j}| tA|t=| jj!dddn #1swxYwY|j"| }|d | _#n|jj$rd | _#ny|j%| j%krd | _#na| j&s|j'rd | _#nK| j(rB| j(j)r6| j(j*r"tV,d | jVd | _#n`| j(}|rK|j-rDd .| j| j%||j/pd }tV0|| | | j1}|jj23||D]}d |_4d |_5| S)N)r6 constraintsr,r0user_requestedPIP_RESOLVER_DEBUGi@ ) max_roundsz,ResolutionImpossible[Requirement, Candidate])r=c"|j|jkSN)name project_name)cs r:z"Resolver.resolve..ss16Q^3Kr;)keyFTz%s is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.zThe candidate selected for download or install is a yanked version: {name!r} candidate (version {version} at {link}) Reason for being yanked: {reason}z )rFversionlinkreason)6r6collect_root_requirementsrr@r,r0rAosenvironrr RLResolverresolve requirementsr7r get_installation_errorr rrrsortedmappingvaluesget_install_requirementrFrG contextlibsuppressKeyErrorradd_named_requirementrextrasget_dist_to_uninstallshould_reinstallr/rK is_editableeditable source_linkis_fileis_wheelloggerinfo is_yankedformat yanked_reasonwarningall_requirementsr' prepare_linked_requirements_morepreparedneeds_more_preparation)r8r<r= collectedproviderreporterresolver#limit_how_complex_resolution_can_beresulteerrorreq_set candidateireqreqinstalled_distrLmsgreqss r:rRzResolver.resolveJsL::9EE L!- $ 8!2$3     2: - -BVBXBXHH"}}HY%;;;#,X66%55i6LMM555 #_Y^%D%D%K"\?? JJN%(-%%- (,%%'9+<<<(,%%& .*A )-%%& 9+@+H (1KK5  )-%%(D $ $D&"%--?  s###  ) )$ / / / /' >>tDDD / /CCL).C & &s+%B** C;41C%%C;9AGG !G rwcR|j Jd|jsgS|jj}t|t |j}t |jtj t|d}d|DS)aZGet order for installation of requirements in RequirementSet. The returned list contains a requirement before another that depends on it. This helps ensure that the environment is kept consistent as they get installed one-by-one. The current implementation creates a topological ordering of the dependency graph, giving more weight to packages with less or no dependencies, while breaking any cycles in the graph at arbitrary points. We make no guarantees about where the cycle would be broken, other than it *would* be broken. Nzmust call resolve() first)weightsT)rJreversecg|]\}}|Sr).0_rys r: z3Resolver.get_installation_order..s111D111r;) r7rSgraphget_topological_weightssetkeysrUitems functoolspartial_req_set_item_sorter)r8rwrr sorted_itemss r:get_installation_orderzResolver.get_installation_orders|'')D'''# I ")%W5I5N5N5P5P1Q1QRR  & & ( (!"6HHH   21L1111r;rE)__name__ __module__ __qualname__r5rrrrrboolstrrintr4rrrrRr __classcell__)r9s@r:rr's6HHH6:..%..j) . 5 .  ."..!%..."%S/2......@p01pKOp ppppd2%2  !22222222r;rrzDirectedGraph[Optional[str]]requirement_keysr>c  ti dttddf fd t}D]3}||D]}n||4|snNc&|vrdS||D] }|||vrdS|d}t |t |<dS)Nr)add iter_childrenremovegetmaxlen)rchildlast_known_parent_countrpathrvisitrs r:rz&get_topological_weights..visits 4<< F ((..  E E%LLLL D ' ' ' F")++dA"6"63SYY?? r;Tr) rrrrrrrr difference) rrleavesrJ_childweightleafrrrrs `` @@@r:rrsy8 #uuD(*G@HSM@d@@@@@@@@@@,  C{--c22   3  Ua # #D+++"GDMM  D LL    -4 E$KKKW\\^^$$//0@AAJ%%:%%> Nr;itemrc@t|d}|||fS)a)Key function used to sort install requirements for installation. Based on the "weight" mapping calculated in ``get_installation_order()``. The canonical package name is returned as the second member as a tie- breaker to ensure the result is predictable, which is useful in tests. rr )rrrFs r:rr5s$ T!W % %D 4=$ r;)=rYrloggingrOtypingrrrrrrr pip._vendor.packaging.utilsr pip._vendor.resolvelibr r rrrQpip._vendor.resolvelib.structsrpip._internal.cacherpip._internal.exceptionsr"pip._internal.index.package_finderr pip._internal.operations.preparerpip._internal.req.constructorsrpip._internal.req.req_installrpip._internal.req.req_setrpip._internal.resolution.baserr,pip._internal.resolution.resolvelib.providerr,pip._internal.resolution.resolvelib.reporterrrpip._internal.utils.packagingrbaserr r6r! pip._vendor.resolvelib.resolversr"RLResultr getLoggerrrerrrrr;r:rs HHHHHHHHHHHHHHHHHH999999XXXXXXXXXX999999888888******;;;;;;<<<<<<@@@@@@DDDDDD<<<<<<444444RRRRRRRRDDDDDD:99999((((((((3CCCCCC k9c1 2F  8 $ $r2r2r2r2r2|r2r2r2jV )V=@XV (3- VVVVr  '' (  (3-$ %  38_      r;