Re*dZddlZddlmZmZmZmZmZmZm Z ddl m Z ddl m Z mZddlmZddlmZddlmZdd lmZejeZGd d eZee efZe e e fZe e ee fZee eefZee eefZe eefZ e ee fZ!d e ee"ffd Z# ddedeee$ge"fd e fdZ%deed e!fdZ&deeded ee fdZ'dee ded ee fdZ(dS)z'Validation of dependencies of packages N)CallableDictList NamedTupleOptionalSetTuple) Requirement)NormalizedNamecanonicalize_name))make_distribution_for_install_requirement)get_default_environment)DistributionVersion)InstallRequirementc0eZdZUeed<eeed<dS)PackageDetailsversion dependenciesN)__name__ __module__ __qualname__r__annotations__rr /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/operations/check.pyrrs/    {######rrreturnc\i}d}t}|ddD]}|j} t|}t |j|||<D#ttf$r(}t d||d}Yd}~xd}~wwxYw||fS)z3Converts a list of distributions into a PackageSet.Fr) local_onlyskipz%Error parsing requirements for %s: %sTN) riter_installed_distributionscanonical_namelistiter_dependenciesrrOSError ValueErrorloggerwarning) package_setproblemsenvdistnameres r!create_package_set_from_installedr."sKH ! # #C00E0KK"  6 6 8 899L .t|\ J JK  $    NNBD! L L LHHHHHH    s9A..B'?B""B'r( should_ignorecHi}i}|D]\}}t}t}|r ||r0|jD]}t|j} | |vrz)check_install_conflicts..os D 4Ir)r/)r._simulate_installation_of_create_whitelistrD)rEr(_would_be_installedrIs @rcheck_install_conflictsrO`sf 788NK2:{KK""4kBBI  'I'I'I'I    rct}|D]x}t|}|}|j}t |jt |||<||y|S)z=Computes the version of packages after installing to_install.) r4r get_metadata_distributionr!rrr"r#r7)rEr( installedinst_req abstract_distr+r,s rrKrKts IA(KK 6688"*4<d>T>T>V>V9W9WXX D d rrNct|}|D]D}||vr||jD]/}t|j|vr||n0E|SrH)r4rr r,r7)rNr(packages_affectedr>rBs rrLrLs.//# , , , |,9  C **.???!%%l333@ rrH))__doc__loggingtypingrrrrrrr "pip._vendor.packaging.requirementsr pip._vendor.packaging.utilsr r pip._internal.distributionsr pip._internal.metadatarpip._internal.metadata.baserpip._internal.req.req_installr getLoggerrr&r PackageSetMissing Conflicting MissingDictConflictingDict CheckResultConflictDetailsboolr.r;rDrOrKrLrrrrisIIIIIIIIIIIIIIIIII::::::IIIIIIIIQQQQQQ::::::;;;;;;<<<<<<  8 $ $$$$$$Z$$$ ..0 1  + ,N$7DE >4=01 ~tK'889K01  K/0!5T1A+B!!!!$OS* * * ,4XseTk5J,K* * * * * Z-?(@_('(7A&N+:Dr