N4("dZddlmZddlZddlZddlmZddlmZddl m Z m Z m Z ddl mZddlmZdd lmZdd lmZdd lmZdd lmZmZdd lmZddlmZddlmZddlm Z ddl!m"Z"ddl#m$Z$ddl%m&Z&ddl'm(Z(m)Z)m*Z*m+Z+ddl,m-Z-ddl.m/Z/ddl0m1Z1ddl2m3Z3ddl4m5Z5m6Z6m7Z7ej8e9Z:d&dZ;e7j<e7j=e7j>gZ?e dd !Z@d'd$ZAGd%d eZBdS)(zContains the RequirementCommand base class. This class is in a separate module so the commands that do not always need PackageFinder capability don't unnecessarily import the PackageFinder machinery and all its vendored dependencies, etc. ) annotationsN)partial)Values)AnyCallableTypeVar)#SubprocessBuildEnvironmentInstaller) WheelCache) cmdoptions)IndexGroupCommand)SessionCommandMixin) CommandErrorPreviousBuildDirError) LinkCollector) PackageFinder)SelectionPreferences) TargetPython) PipSession) BuildTracker)RequirementPreparer)install_req_from_editableinstall_req_from_line#install_req_from_parsed_requirementinstall_req_from_req_string)parse_dependency_groups)parse_requirements)InstallRequirement) BaseResolver) TempDirectoryTempDirectoryTypeRegistry tempdir_kindsoptionsrreturnboolcHtjddkS)z Check if regular constraints should be ignored because we are in a isolated build process and build constraints feature is enabled but no build constraints were passed. _PIP_IN_BUILD_IGNORE_CONSTRAINTS1)osenvirongetr"s o/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/cli/req_command.py!should_ignore_regular_constraintsr-0s :>>< = = DD _CommandTRequirementCommand)boundfunc-Callable[[_CommandT, Values, list[str]], int]c dddfd }|S)zNDecorator for common logic related to managing temporary directories. registryr r#NonecFtD]}||ddS)NF)KEEPABLE_TEMPDIR_TYPES set_delete)r5ts r,configure_tempdir_registryz0with_cleanup..configure_tempdir_registryKs4' * *A   5 ) ) ) ) * *r.selfr/r"rargs list[str]intc|jJ|jr|j |||S#t$r|jwxYwN)tempdir_registryno_cleanr)r<r"r=r;r2s r,wrapperzwith_cleanup..wrapperOs~$000   > & &t'< = = = 4gt,, ,$    ' &t'< = = =   s 0A )r5r r#r6)r<r/r"rr=r>r#r?)r2rDr;s` @r, with_cleanuprFDsB****        Nr.ceZdZd3fd Zed4d Ze d5d6dZe d7d8d*Zd9d-Z ed:d.Z d;dlist[InstallRequirement]c g}t|sM|jD]E}t|d|||D].}t||jd}||/F|D]?} t | d|jdt|dd}||@|jrCt|jD].} t| |jd}||/|j D]>} t| d|jt|dd}||?|j D]f}t|||| D]P}t||jd|jr|jdnd }||Qgt!d |Drd|_|s|j sy|j sr|jskd |ji} |jrAt)d jdit-| d|jt)djdi| |S)zS Parse command-line arguments into the corresponding requirements. T) constraintrYr"rXF)r user_suppliedNconfig_settings) comes_fromrrr)rrr)rYr"rX)rrrc3$K|] }|jV dSrA)has_hash_options).0reqs r, z6RequirementCommand.get_requirements..5s%<<s#<<<<<>Dt388G4F+G+GHHH#5..4==7;== r.cx|j}|}|rt|dSdS)zE Trace basic information about the provided objects. N) search_scopeget_formatted_locationsrminfo)rYr locationss r,trace_basic_infoz#RequirementCommand.trace_basic_infoNsG *  88::  # KK " " " " " # #r. target_pythonTargetPython | None bool | Nonectj||}td|j|j|j|}t j|||S)z Create a package finder appropriate to this requirement command. :param ignore_requires_python: Whether to ignore incompatible "Requires-Python" values in links. Defaults to False. r+T) allow_yankedformat_controlallow_all_prereleases prefer_binaryry)link_collectorselection_prefsr)rcreaterrprerr)r<r"rXrryrrs r,_build_package_finderz(RequirementCommand._build_package_finderYsi'-gwGGG."1")+!/#9    #)+'    r.)r=rrHrr#r6)r"rr#rP)Nr)rVrr"rrWrrXrrYrrZr$r[r\r]r?r#r)NFTFFrtN)rurrYrr"rrvrwrZr$rxr$ryr$rzr$r{rPr|r}r#r) r=r>r"rrYrrXrr#r)rYrr#r6)NN) r"rrXrrrryrr#r) __name__ __module__ __qualname__rK staticmethodrU classmethodrsrrrr __classcell__)rOs@r,r0r0`s'888888 \$(@ @ @ @ [@ D *.#!%', % 1266 6 6 6 [6 paaaaF###\#.2.2          r.)r"rr#r$)r2r3r#r3)C__doc__ __future__rloggingr( functoolsroptparsertypingrrrpip._internal.build_envr pip._internal.cacher pip._internal.clir pip._internal.cli.index_commandr r pip._internal.exceptionsrrpip._internal.index.collectorr"pip._internal.index.package_finderr$pip._internal.models.selection_prefsr"pip._internal.models.target_pythonrpip._internal.network.sessionr,pip._internal.operations.build.build_trackerr pip._internal.operations.preparerpip._internal.req.constructorsrrrr&pip._internal.req.req_dependency_grouprpip._internal.req.req_filerpip._internal.req.req_installrpip._internal.resolution.baserpip._internal.utils.temp_dirrr r! getLoggerrrmr- BUILD_ENVEPHEM_WHEEL_CACHE REQ_BUILDr8r/rFr0rEr.r,rs#""""" ))))))))))GGGGGG******((((((======VVVVVVHHHHHHHH777777<<<<<<EEEEEE;;;;;;444444EEEEEE@@@@@@ KJJJJJ999999<<<<<<666666  8 $ $EEEE# GK'; < < < 8S S S S S *S S S S S r.