$`F7dZddlmZddlZddlZddlmZddlmZddl m Z m Z m Z ddl mZmZmZddlmZdd lmZdd lmZdd lmZdd lmZdd lmZmZmZddlmZddl m!Z!ddl"m#Z#ddl$m%Z%ddl&m'Z'ddl(m)Z)ddl*m+Z+ddl,m-Z-m.Z.m/Z/m0Z0ddl1m2Z2m3Z3ddl4m5Z5ddl6m7Z7ddl8m9Z9ddl:m;Z;ddlm?Z?m@Z@mAZAejBeCZDd1d!ZEeAjFeAjGeAjHgZIe d"d#$ZJd2d'ZKd3d/ZLGd0d#eZMdS)4zContains 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)BuildEnvironmentInstaller"InprocessBuildEnvironmentInstaller#SubprocessBuildEnvironmentInstaller) WheelCache) cmdoptions)make_target_python)IndexGroupCommand)SessionCommandMixin) CommandErrorPreviousBuildDirErrorUnsupportedPythonVersion) LinkCollector) PackageFinder)SelectionPreferences) TargetPython) PipSession) BuildTracker)RequirementPreparer)install_req_from_editableinstall_req_from_line#install_req_from_parsed_requirementinstall_req_from_req_string)PEP723Exceptionpep723_metadata)parse_dependency_groups)parse_requirements)InstallRequirement) BaseResolver)check_requires_python) 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 }/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/cli/req_command.py!should_ignore_regular_constraintsr4;s :>>< = = 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)r<ts r3configure_tempdir_registryz0with_cleanup..configure_tempdir_registryVs4' * *A   5 ) ) ) ) * *r5selfr6r)rargs list[str]intc|jJ|jr|j |||S#t$r|jwxYwN)tempdir_registryno_cleanr)rCr)rDrBr9s r3wrapperzwith_cleanup..wrapperZs~$000   > & &t'< = = = 4gt,, ,$    ' &t'< = = =   s 0A )r<r'r*r=)rCr6r)rrDrEr*rF)r9rKrBs` @r3 with_cleanuprMOsB****        Nr5constraint_filesrEfinderrsessionrlist[InstallRequirement]cg}|D]E}t|d|||D].}t||jd}||/F|S)NT) constraintrOr)rPFisolated user_supplied)r"r isolated_modeappend)rNrOr)rP requirementsfilename parsed_req req_to_adds r3parse_constraint_filesr]ks L$ , ,,     , ,J= .#J    + + + + , r5ceZdZd3fd Zed4d Ze d5d6dZe d7d8d*Zd9d-Z ed:d.Z d;d}t|d|jt|dd}||?|jD]f} t| |||D]P} t!| |jd| jr| jdnd}||Qg|jrt)|jd krt+d |jd } t-| } n&#t.$r} t+| jd} ~ wwxYw| d d }|rI|jsBt5|}t7||jst;d| d|jd|| dgD].}t||jd}||/t?d|Drd|_ |s|j s|jsy|j sr|jskd|j!i}|j"rAt+dj#ditI|d%|j"t+dj#di||S)zS Parse command-line arguments into the corresponding requirements. NTconfig_settings) comes_fromrUrVrrT)rVrUr)rOr)rP)rUrVrz1--requirements-from-script can only be given oncerzrequires-python)requires_python version_infozScript z requires a different Python: z not in dependenciesc3$K|] }|jV dSrH)has_hash_options).0reqs r3 z6RequirementCommand.get_requirements..s%<<s#<<<<<3X&XX(3XX=SXX '**>2>> 0 08$2"& ##J//// <<|<<< < < *%)G "    # (   0  DI&D! "E>>Dt388G4F+G+GHHH#5..4==7;== sG H*G>>Hcx|j}|}|rt|dSdS)zE Trace basic information about the provided objects. N) search_scopeget_formatted_locationsrinfo)rOr locationss r3trace_basic_infoz#RequirementCommand.trace_basic_infosG *  88::  # KK " " " " " # #r5rTargetPython | None bool | Nonectj||}td|j|j|j|}t j||||jS)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. r2T) allow_yankedformat_controlrelease_control prefer_binaryr)link_collectorselection_prefsruploaded_prior_to)rcreaterrrrrr)rCr)rPrrrrs r3_build_package_finderz(RequirementCommand._build_package_findersp'-gwGGG."1#3!/#9    #)+'%7     r5)rDrr_rr*r=)r)rr*rg)Nr)rmr&r)rrnrrPrrOrror+rprqrrrFr*r)NFTFFrN)rrrOrr)rrurror+rr+rr+rr+rrgrrr*r$) rDrEr)rrOrrPrr*rQ)rOrr*r=)NN) r)rrPrrrrrr*r) __name__ __module__ __qualname__rb staticmethodrl classmethodrrrrr __classcell__)rfs@r3r7r7s'888888 \$(N N N N [N ` *.#!%', % 1266 6 6 6 [6 pzzzzx###\#.2.2          r5)r)rr*r+)r9r:r*r:) rNrErOrr)rrPrr*rQ)N__doc__ __future__rloggingr/ functoolsroptparsertypingrrrpip._internal.build_envr r r pip._internal.cacher pip._internal.clir pip._internal.cli.cmdoptionsrpip._internal.cli.index_commandrrpip._internal.exceptionsrrrpip._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.constructorsrrrrpip._internal.req.pep723rr &pip._internal.req.req_dependency_groupr!pip._internal.req.req_filer"pip._internal.req.req_installr#pip._internal.resolution.baser$pip._internal.utils.packagingr%pip._internal.utils.temp_dirr&r'r( getLoggerrrr4 BUILD_ENVEPHEM_WHEEL_CACHE REQ_BUILDr?r6rMr]r7rLr5r3rs`#""""" )))))))))) +*****((((((;;;;;;======VVVVVV 877777<<<<<<EEEEEE;;;;;;444444EEEEEE@@@@@@ FEEEEEEEJJJJJJ999999<<<<<<666666??????  8 $ $EEEE# GK'; < < < 82{ { { { { *{ { { { { r5