U v_ @sddlmZddlmZddlmZddlmZddlm Z e rddl m Z m Z m Z mZddlmZddlmZee d e efZd d ZGd d d eZGdddeZGdd d eZdS)) SpecifierSetcanonicalize_name)InstallRequirement)Hashes)MYPY_CHECK_RUNNING) FrozenSetIterableOptionalTuple) _BaseVersion)Link CandidatecCs,|s|Stdd|D}d|d|S)Ncss|]}t|VqdSNr).0er/builddir/build/BUILDROOT/alt-python38-pip-20.2.4-1.el7.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/base.py szformat_name..z{}[{}],)sortedformatjoin)projectextrasZcanonical_extrasrrr format_namesrc@sDeZdZddZeddZeddZddZd d Zd d Z d S) ConstraintcCs||_||_dSr) specifierhashes)selfrrrrr__init__szConstraint.__init__cCstttSr)rrr)clsrrrempty#szConstraint.emptycCst|j|jddSNF)trust_internet)rrr)r!ireqrrr from_ireq(szConstraint.from_ireqcCst|jpt|jSr)boolrrrrrr __nonzero__-szConstraint.__nonzero__cCs|Sr)r)r(rrr__bool__1szConstraint.__bool__cCs6t|tstS|j|j@}|j|jdd@}t||Sr#) isinstancerNotImplementedrrr)rotherrrrrr__and__5s   zConstraint.__and__N) __name__ __module__ __qualname__r classmethodr"r&r)r*r.rrrrrs  rc@s0eZdZeddZddZddZddZd S) RequirementcCs tddSNzSubclass should overrideNotImplementedErrorr(rrrname?szRequirement.namecCsdS)NFr)r candidaterrris_satisfied_byDszRequirement.is_satisfied_bycCs tddSr4r5r(rrrget_candidate_lookupHsz Requirement.get_candidate_lookupcCs tddSr4r5r(rrrformat_for_errorLszRequirement.format_for_errorN)r/r0r1propertyr7r9r:r;rrrrr3>s  r3c@s`eZdZeddZeddZeddZeddZed d Zd d Z d dZ ddZ dS)rcCs tddSNzOverride in subclassr5r(rrrr7RszCandidate.namecCs tddSr=r5r(rrrversionWszCandidate.versioncCs tddSr=r5r(rrr is_installed\szCandidate.is_installedcCs tddSr=r5r(rrr is_editableaszCandidate.is_editablecCs tddSr=r5r(rrr source_linkfszCandidate.source_linkcCs tddSr=r5)rZ with_requiresrrriter_dependencieskszCandidate.iter_dependenciescCs tddSr=r5r(rrrget_install_requirementosz!Candidate.get_install_requirementcCs tddSr4r5r(rrrr;sszCandidate.format_for_errorN) r/r0r1r<r7r>r?r@rArBrCr;rrrrrQs     N)Z pip._vendor.packaging.specifiersrZpip._vendor.packaging.utilsrZpip._internal.req.req_installrpip._internal.utils.hashesrpip._internal.utils.typingrtypingrr r r pip._vendor.packaging.versionr pip._internal.models.linkr ZCandidateLookuprobjectrr3rrrrrs"       !