hyb
2025-11-04 668edf874b4f77214a8ff4513e60e3c1a973f532
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Ë
ñúh15ãó¢—ddlmZddlZddlZddlZddlZddlmZmZddl    m
Z
ddl m Z m Z mZddl mZddlmZddlmZdd    lmZdd
lmZdd lmZdd lmZdd lmZddlm Z ddl!m"Z"m#Z#ddl$m%Z%ddl&m'Z'm(Z(ddl)m*Z*ddl+m,Z,m-Z-ddl.m/Z/erddl0m1Z2e2e-e,e3fZ1ejhe5«Z6Gd„de"«Z                        dd„Z7                        dd„Z8y)é)Ú annotationsN)Ú TYPE_CHECKINGÚcast©Úcanonicalize_name)Ú BaseReporterÚResolutionImpossibleÚResolutionTooDeep)ÚResolver)Ú DirectedGraph)Ú
WheelCache)ÚResolutionTooDeepError)Ú PackageFinder)ÚRequirementPreparer)Úinstall_req_extend_extras)ÚInstallRequirement)ÚRequirementSet)Ú BaseResolverÚInstallRequirementProvider)Ú PipProvider)ÚPipDebuggingReporterÚ PipReporter)Úget_requirementé)Ú    CandidateÚ Requirement)ÚFactory)ÚResultcóz‡—eZdZhd£Z    d                                                                                    dˆfd„ Z                        dd„Z                dd„ZˆxZS)    r >úonly-if-neededúto-satisfy-onlyÚeagerc óž•—t‰ |«|
|jvsJ‚t||||||    ||| ¬«    |_||_|
|_d|_y)N)    ÚfinderÚpreparerÚmake_install_reqÚ wheel_cacheÚ use_user_siteÚforce_reinstallÚignore_installedÚignore_requires_pythonÚpy_version_info)ÚsuperÚ__init__Ú_allowed_strategiesrÚfactoryÚignore_dependenciesÚupgrade_strategyÚ_result) Úselfr%r$r'r&r(r1r*r+r)r2r,Ú    __class__s             €ú_H:\Change_password\venv_build\Lib\site-packages\pip/_internal/resolution/resolvelib/resolver.pyr.zResolver.__init__,sdø€ô    ‰ÑÔØ 4×#;Ñ#;Ñ;Ð;Ð;䨨Ø-Ø#Ø'Ø+Ø-Ø#9Ø+ô
 
ˆŒ ð$7ˆÔ Ø 0ˆÔØ&*ˆ óc
ó2—|jj|«}t|j|j|j|j
|j ¬«}dtjvr t«}n
t«}t||«}    d}|j|j|¬«x}|_t)|¬«} t+|j,j/«d„¬«D]} | j1«} | €| j2| j4k7rut7j8t:«5| j=| j4«}| j?tA|t=| j2«jB««ddd«Œ¥|jjE| «}|€d    | _#nÃ|jjHrd
| _#n¥|jJ| jJk7rd
| _#n„| jLs |jNrd
| _#nd| jPrV| jPjRr@| jPjTr"tVjYd | j2«Œƒd
| _#nŒ| jP}|rX|jZrLd j]| j2| jJ||j^xsd ¬«}tVja|«| j?| «Œ| jb}|jjdjg|«|D]}d
|_4d    |_5Œ| S#t$r8}    |jj!t#d|    «|j«}
|
|    ‚d}    ~    wt$$rt&d‚wxYw#1swYŒxYw)N)r0Ú constraintsr1r2Úuser_requestedÚPIP_RESOLVER_DEBUGi@ )Ú
max_roundsz,ResolutionImpossible[Requirement, Candidate])Úcheck_supported_wheelscó4—|j|jk7S©N)ÚnameÚ project_name)Úcs r6ú<lambda>z"Resolver.resolve.<locals>.<lambda>us€°1·6±6¸Q¿^¹^Ñ3K€r7)ÚkeyFTz%s is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.z–The candidate selected for download or install is a yanked version: {name!r} candidate (version {version} at {link})
Reason for being yanked: {reason}z <none given>)r@ÚversionÚlinkÚreason)6r0Úcollect_root_requirementsrr9r1r2r:ÚosÚenvironrrÚ
RLResolverÚresolveÚ requirementsr3r    Úget_installation_errorrr
rrÚsortedÚmappingÚvaluesÚget_install_requirementr@rAÚ
contextlibÚsuppressÚKeyErrorrÚadd_named_requirementrÚextrasÚget_dist_to_uninstallÚshould_reinstallr)rEÚ is_editableÚeditableÚ source_linkÚis_fileÚis_wheelÚloggerÚinfoÚ    is_yankedÚformatÚ yanked_reasonÚwarningÚall_requirementsr%Ú prepare_linked_requirements_moreÚpreparedÚneeds_more_preparation)r4Ú    root_reqsr=Ú    collectedÚproviderÚreporterÚresolverÚ#limit_how_complex_resolution_can_beÚresultÚeÚerrorÚreq_setÚ    candidateÚireqÚreqÚinstalled_distrFÚmsgÚreqss                   r6rLzResolver.resolveLsF€ð—L‘L×:Ñ:¸9ÓEˆ    ÜØ—L‘LØ!×-Ñ-Ø $× 8Ñ 8Ø!×2Ñ2Ø$×3Ñ3ô 
ˆð  ¤2§:¡:Ñ -ÜBVÓBX‰Hä"“}ˆHÜ<FØ Ø ó=
ˆð
    3Ø28Ð /Ø$,×$4Ñ$4Ø×&Ñ&Ð3Vð%5ó%ð ˆFT”\ô!Ð8NÔOˆô
 Ø N‰N× !Ñ !Ó #Ñ)Kô
óA    0ˆIð×4Ñ4Ó6ˆD؈|Ø—>‘> Y×%;Ñ%;Ò;ä#×,Ñ,¬XÓ6ñØ%×5Ñ5°i×6LÑ6LÓM˜Ø×5Ñ5Ü5Ø #¤_°Y·^±^Ó%D×%KÑ%Kóô÷ðð"Ÿ\™\×?Ñ?À    ÓJˆNØÐ%à(-Õ%Ø—‘×-Ò-à(,Õ%Ø×'Ñ'¨9×+<Ñ+<Ò<à(,Õ%Ø×&Ò&¨.×*AÒ*Að)-Õ%Ø×&Ò&¨9×+@Ñ+@×+HÒ+Hà×(Ñ(×1Ò1ä—K‘Kð5🠠  ™    ô    ñ ð)-Õ%áà×(Ñ(ˆDÙ˜ŸšðD÷‘&Ø"Ÿ™Ø%×-Ñ-ØØ×-Ñ-Ò?°ð    óð    ô—‘˜sÔ#à × )Ñ )¨$Ö /ðCA    0ðF×'Ñ'ˆØ  ‰ ×Ñ×>Ñ>¸tÔDØò    /ˆC؈CŒLØ).ˆCÕ &ð    /ðˆøôm$ò    Ø—L‘L×7Ñ7ÜÐCÀQÓGØ×%Ñ%óˆEð˜QÐ ûÜ ò    3Ü(¨dÐ 2ð    3ú÷ñús%Â&L9Ä2AN Ì9    N    Í3M5Í5N    Î N    có~—|j€Jd«‚|jsgS|jj}t|t    |jj «««}t |jj«tjt|¬«d¬«}|Dcgc]\}}|‘Œ    c}}Scc}}w)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.
        zmust call resolve() first)ÚweightsT)rDÚreverse) r3rMÚgraphÚget_topological_weightsÚsetÚkeysrOÚitemsÚ    functoolsÚpartialÚ_req_set_item_sorter)r4rrr|rzÚ sorted_itemsÚ_rts       r6Úget_installation_orderzResolver.get_installation_order¾s¡€ð|‰|Ð'ÐDÐ)DÓDÐ'à×#Ò#àˆIà— ‘ ×"Ñ"ˆÜ)¨%´°W×5IÑ5I×5NÑ5NÓ5PÓ1QÓRˆäØ ×  Ñ  × &Ñ &Ó (Ü×!Ñ!Ô"6ÀÔHØô
ˆ ð
%1×1™˜˜D’Ó1Ð1ùÓ1sÂ) B9r?)r%rr$rr'zWheelCache | Noner&rr(Úboolr1r‡r*r‡r+r‡r)r‡r2Ústrr,ztuple[int, ...] | None)riúlist[InstallRequirement]r=r‡Úreturnr)rrrrŠr‰)Ú__name__Ú
__module__Ú __qualname__r/r.rLr†Ú __classcell__)r5s@r6r r )s·ø„ÚHÐð37ð+à%ð+ðð+ð'ð    +ð
5ð +ð ð +ð"ð+ðð+ð!%ð+ðð+ðð+ð0õ+ð@pØ1ðpØKOðpà    ópðd2Ø%ð2à    !÷2r7r c󇇇
‡ ‡ —t«Š
iŠ dˆˆ
ˆˆ ˆ fd„ Š     t«}‰D]-}|€Œ‰j|«D]}Œ|j|«Œ/|sn9t‰«dz
}|D] }|‰vrŒ|g‰ |<Œ|D]}‰j    |«ŒŒx‰ d«t‰ j ««j ‰«}|rJ|«‚‰ j«D    cic]\}}    |t|    «“Œc}    }Scc}    }w)a¯Assign weights to each node based on how "deep" they are.
 
    This implementation may change at any point in the future without prior
    notice.
 
    We first simplify the dependency graph by pruning any leaves and giving them
    the highest weight: a package without any dependencies should be installed
    first. This is done again and again in the same way, giving ever less weight
    to the newly found leaves. The loop stops when no leaves are left: all
    remaining packages have at least one dependency left in the graph.
 
    Then we continue with the remaining graph, by taking the length for the
    longest path to any node from root, ignoring any paths that contain a single
    node twice (i.e. cycles). This is done through a depth-first search through
    the graph, while keeping track of the path to the node.
 
    Cycles in the graph result would result in node being revisited while also
    being on its own path. In this case, take no action. This helps ensure we
    don't get stuck in a cycle.
 
    When assigning weight, the longer path (i.e. larger length) is preferred.
 
    We are only interested in the weights of packages that are in the
    requirement_keys.
    có•—|‰vry‰j|g«}t|«dk\ry‰j|«‰j|«D]
}‰|«Œ ‰j    |«|‰vry|j t‰««|‰|<y)Né)ÚgetÚlenÚaddÚ iter_childrenÚremoveÚappend)ÚnodeÚ cur_weightsÚchildr|ÚpathÚrequirement_keysÚvisitrzs   €€€€€r6rz&get_topological_weights.<locals>.visitýsø€Ø 4‰<à ð—k‘k $¨Ó+ˆ Ü ˆ{Ó ˜qÒ  Ø ð     ‰ŒØ×(Ñ(¨Ó.ò    ˆEÙ %Lð    à  ‰ DÔà Ð'Ñ 'Ø à×Ñœ3˜t›9Ô%Ø#ˆŠ r7Nr)r˜z
str | NonerŠÚNone)    r~r•r”r“r–rÚ
differencer€Úmax) r|rœÚleavesrDÚ_childÚweightÚleafrŸr˜Úwgtsr›rrzs ``        @@@r6r}r}Þs"ü€ô8 ›E€DØ+-€G÷$ñ$ðB Ü“ˆØò     ˆC؈{ØØ×-Ñ-¨cÓ2ò  áð  ð
—
‘
˜3•ð     ñà äU“˜a‘ˆØò    %ˆDØÐ+Ñ+ØØ#˜HˆGDŠMð    %ð
ò    ˆDØ L‰L˜Õ ð    ð+ ñ6
ˆ$„KôW—\‘\“^Ó$×/Ñ/Ð0@ÓA€JÙÐ%˜:Ó%ˆ>ð18· ± ³× @¡   tˆD”#d“)‰OÓ @Ð@ùÓ @sÃ!C;có,—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)Úitemrzr@s   r6rƒrƒEs!€ô ˜T !™WÓ %€DØ 4‰=˜$Ð Ðr7)r|zDirectedGraph[str | None]rœzset[str]rŠúdict[str | None, int])r§ztuple[str, InstallRequirement]rzr¨rŠztuple[int, str])9Ú
__future__rrSrÚloggingrIÚtypingrrÚpip._vendor.packaging.utilsrÚpip._vendor.resolvelibrr    r
r rKÚpip._vendor.resolvelib.structsr Úpip._internal.cacher Úpip._internal.exceptionsrÚ"pip._internal.index.package_finderrÚ pip._internal.operations.preparerÚpip._internal.req.constructorsrÚpip._internal.req.req_installrÚpip._internal.req.req_setrÚpip._internal.resolution.baserrÚ,pip._internal.resolution.resolvelib.providerrÚ,pip._internal.resolution.resolvelib.reporterrrÚpip._internal.utils.packagingrÚbaserrr0rÚ pip._vendor.resolvelib.resolversrÚRLResultrˆÚ    getLoggerr‹r_r}rƒ©r7r6ú<module>r¿sÐðÝ"ãÛÛÛ    ß&å9ßXÑXÝ9Ý8å*Ý;Ý<Ý@ÝDÝ<Ý4ßRÝD÷õ:ç(ÝáÝCà k 9¨cÐ1Ñ 2€Fð
ˆ×    Ñ    ˜8Ó    $€ôr2ˆ|ôr2ðjdAØ $ðdAØ8@ðdAàódAðN Ø
(ð à "ð ðô r7