'Z8d!e1d=<ee d?d@dAd%dB Z9d!e1dA<ee dCdDdEd:ddF'Z:d!e1dE<ee dGdHdIgdJdKdLMZ;d!e1dH<ee/dNdOdPdQdRdRdSTZd!e1dY<ee d]d^dd_d`aZ?d!e1d^<ee dbdcdddedfaZ@d!e1dc<ee dgdhdddediaZAd!e1dh<ee djdkdldmdndodpqZBd!e1dm<d"drZCee/dsdtdRdRduvZDd!e1dt<ee/dwdxdRddRdyzZEd!e1dx<ee d{d|d}d~dejdZGd!e1d~<d"dZHee ddd%dd'ZId!e1d<d"dZJd"dZKd"dZLd"dZMd"dZNd"dZOd#dZPee/ddddddRdedePd ZQd!e1d<d$dZR d#dZS d#dZTd"dZUd"dZVee ddddddZWd!e1d<d%dZX d#dZYee ddddeYdded ZZd!e1d<ee dddddZ[d!e1d<ee ddddddZ\d!e1d<d&dZ]d'dZ^d"dZ_ee/ddeddRdZ`d!e1d< d(dZaee dddeadZbd!e1d<ee dddd%dd'Zcd!e1d< d(dZdee ddgeededddŬƫ Zfd!e1d<ee ddd%dɬ Zgd!e1d<ee dddddά'Zhd!e1d<ee ddd%ddҬ'Zid!e1d<ee ddd%de 'Zjde1d< d#dՄZkee dddeedekddڬ۫ Zld!e1d<ee dd%ddݬޫZmd!e1d<ee dd%ddޫZnd!e1d<ee dd%ddޫZod!e1d<ee ddd%dd'Zpd!e1d<ee dddddgdZqd!e1d< d#dZree ddderddZsd!e1d<ee ddd%dd'Ztd!e1d<ee/ddRdRddZud!e1d<d dZvee/ddddddZwd!e1d<ee ddd%de 'Zxd!e1d<ddgZyee d d d dgd d geyzdZzd!e1d<ee ddd dgddgdZ{d!e1d<de0e2e3e4e6e7e9e:ee?e@eBeCeKeDeEe`ebepe8exeze{eAgdZ|de1d<deGeHeIeJgdZ}de1d<y()aC shared options and groups The principle here is to define options once, but *not* instantiate them globally. One reason being that options with action='append' can carry state between parses. pip parses general options twice internally, and shouldn't pass on state. To be consistent, all options will follow this design. ) annotationsN)partial) SUPPRESS_HELPOption OptionGroup OptionParserValues)dedent)AnyCallablecanonicalize_name)ConfigOptionParser) CommandError)USER_CACHE_DIRget_src_prefix) FormatControl)PyPI) TargetPython) STRONG_HASHES) strtoboolstrc|d|}tjdj|j}|j |y)z Raise an option parsing error using parser.error(). Args: parser: an OptionParser instance. option: an Option instance. msg: the error text. z error:  N)textwrapfilljoinspliterror)parseroptionmsgs h/mnt/ssd/data/python-lab/DaemonControl/venv/lib/python3.12/site-packages/pip/_internal/cli/cmdoptions.pyraise_option_errorr$%s=HHSE "C --- .C LLdict[str, Any]cdt||d}|dD]}|j||S)z Return an OptionGroup object group -- assumed to be dict with 'name' and 'options' keys parser -- an optparse Parser nameoptions)r add_option)groupr option_groupr!s r#make_option_groupr-3s> vuV}5L "*)* r%FcJt|j|j|j|jg}t t dh}|j|k7xr |j }|r |r td|r(|js|r|js tdyyyy)zFunction for determining if custom platform options are allowed. :param options: The OptionParser options. :param check_target: Whether or not to check if --target is being used. z:all:zWhen restricting platform and interpreter constraints using --python-version, --platform, --abi, or --implementation, either --no-deps must be set, or --only-binary=:all: must be set and --no-binary must not be set (or must be set to :none:).zfCan not use any platform or abi specific options unless installing via '--target' or using '--dry-run'N) anypython_version platformsabisimplementationrsetformat_controlignore_dependenciesrdry_run target_dir)r) check_targetdist_restriction_set binary_onlysdist_dependencies_alloweds r#check_dist_restrictionr=?s   " "    LL  " "   y1K+-Qg6Q6Q2Q :   #7@R@RA AS#7r%ct|dr\|jrO|js tdddlm}ddlm}|5}|jD] }|||  dddyyy#1swYyxYw)zfFunction for validating build constraints options. :param options: The OptionParser options. build_constraintsz<--build-constraint cannot be used with --no-build-isolation.r) PipSession)get_file_contentN)hasattrr?build_isolationrpip._internal.network.sessionr@pip._internal.req.req_filerA)r)r@rAsessionconstraint_files r#check_build_constraintsrHgs w+,1J1J&&N  =? \ ;W#*#<#< ; ': ; ; ;2K, ; ;s A**A3c@tjj|SN)ospath expanduserr!optvalues r#_path_option_checkrQ~s 77  e $$r%ct|SrJr rNs r#_package_name_option_checkrSs U ##r%creZdZejdzZej j Zeed<eed<y) PipOption)rL package_namerVrLN) __name__ __module__ __qualname__rTYPES TYPE_CHECKERcopyrSrQr%r#rUrUs9 LL3 3E&&++-L#=L -Lr%rUz-hz--helphelpz Show help.)destactionr^zCallable[..., Option]help_z--debug debug_mode store_truezbLet unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.r_r`defaultr^z --isolated isolated_modezSRun pip in an isolated mode, ignoring environment variables and user configuration.z--require-virtualenvz--require-venv require_venvzMAllow pip to only run in a virtual environment; exit with an error otherwise.require_virtualenvz--break-system-packagesoverride_externally_managedz=Allow pip to modify an EXTERNALLY-MANAGED Python installationz--pythonpythonz.Run pip with the specified Python interpreter.)r_r^z-vz --verboseverbosecountzDGive more output. Option is additive, and can be used up to 3 times.z --no-colorno_colorzSuppress colored output.z-Vz --versionversionzShow version and exit.z-qz--quietquietzGive less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels).z--progress-bar progress_barchoice)autoonoffrawrrzSpecify whether the progress bar should be used. In 'auto' mode, --quiet will suppress all progress bars. [auto, on, off, raw] (default: auto))r_typechoicesrer^z--logz --log-filez --local-loglogrLz Path to a verbose appending log.)r_metavarrvr^z --no-inputno_inputzDisable prompting for input.z--keyring-providerkeyring_provider)rrdisabledimport subprocesszEnable the credential lookup via the keyring library if user input is allowed. Specify which mechanism to use [auto, disabled, import, subprocess]. (default: %default))r_rwrer^z--proxyproxyzESpecify a proxy in the form scheme://[user:passwd@]proxy.server:port.)r_rvrer^z --retriesretriesintzHMaximum attempts to establish a new HTTP connection. (default: %default)z--resume-retriesresume_retrieszQMaximum attempts to resume or restart an incomplete download. (default: %default)z --timeoutz--default-timeoutsectimeoutfloatz2Set the socket timeout (default %default seconds).)ryr_rvrer^c ,tdddgdgdddS) Nz--exists-action exists_actionrq)siwbaappendr`zYDefault action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.)r_rvrwrer`ryr^rr]r%r#rrOs)   )9  r%z--certcertzPath to PEM-encoded CA certificate bundle. If provided, overrides the default. See 'SSL Certificate Verification' in pip documentation for more information.)r_rvryr^z --client-cert client_certzkPath to SSL client certificate, a single file containing the private key and the certificate in PEM format.)r_rvreryr^z-iz --index-urlz --pypi-url index_urlURLzBase URL of the Python Package Index (default %default). This should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.)r_ryrer^c$tddddgdS)Nz--extra-index-urlextra_index_urlsrrzmExtra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url.r_ryr`rer^rr]r%r#extra_index_urlrs#    r%z --no-indexno_indexzAIgnore package index (only looking at --find-links URLs instead).c &tddddgddS)Nz-fz --find-links find_linksrurlaIf a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files. If a local path or file:// URL that's a directory, then look for archives in the directory listing. Links to VCS project URLs are not supported.r_r`reryr^rr]r%r#rrs&   7  r%c$tddddgdS)Nz--trusted-host trusted_hostsrHOSTNAMEz]Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.)r_r`ryrer^rr]r%r# trusted_hostrs#  ,  r%c &tddddgddS)Nz-cz --constraint constraintsrfilez\Constrain versions using the given constraints file. This option can be used multiple times.rrr]r%r#rrs&   2  r%c &tddddgddS)Nz--build-constraintr?rrrzfConstrain build dependencies using the given constraints file. This option can be used multiple times.)r_r`rvreryr^rr]r%r#r?r?s&    6  r%c &tddddgddS)Nz-rz --requirement requirementsrrzQInstall from the given requirements file. This option can be used multiple times.rrr]r%r#rrs&   2  r%c &tddddgddS)Nz-ez --editable editablesrzpath/urlzkInstall a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url.rrr]r%r#editablers'    F  r%ctjj|}t|j|j |yrJ)rKrLabspathsetattrvaluesr_)r!opt_strrPr s r# _handle_srcrs( GGOOE "E FMM6;;.r%z--srcz--sourcez --source-dirz--source-directorysrc_dirdircallbackzDirectory to check out editable projects into. The default in a virtualenv is "/src". The default for global installs is "/src".)r_rvryrer`rr^srcr c.t||jS)zGet a format_control object.)getattrr_)rr!s r#_get_format_controlrs 66;; ''r%ct|j|}tj||j|j yrJ)rrrhandle_mutual_excludes no_binary only_binaryr!rrPr existings r#_handle_no_binaryr s7#6==&9H(( r%ct|j|}tj||j|j yrJ)rrrrrrrs r#_handle_only_binaryrs7#6==&9H(( r%c fttt}tdddtd|dS)Nz --no-binaryr5rravDo not use binary packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either ":all:" to disable all binary packages, ":none:" to empty the set (notice the colons), or one or more package names with commas between them (no colons). Note that some packages are tricky to compile and may fail to install when this option is used on them.r_r`rrvrer^)rr4rrr5s r#rr#s7"35#%0N  " D  r%c fttt}tdddtd|dS)Nz --only-binaryr5rraKDo not use source packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either ":all:" to disable all source packages, ":none:" to empty the set, or one or more package names with commas between them. Packages without binary distributions will fail to install when this option is used on them.r)rr4rrrs r#rr5s6"35#%0N  $ "  r%z --platformr1platformrzOnly use wheels compatible with . Defaults to the platform of the running system. Use this option multiple times to specify multiple platforms supported by the target interpreter.rc|sy|jd}t|dkDryt|dk(r|d}t|dkDr |d|ddg} td|D}|dfS#t$rYy wxYw) z Convert a version string like "3", "37", or "3.7.3" into a tuple of ints. :return: A 2-tuple (version_info, error_msg), where `error_msg` is non-None if and only if there was a parsing error. )NN.)r]z'at most three version parts are allowedrNc32K|]}t|ywrJ)r).0parts r# z*_convert_python_version..ms94SY9s)r]z$each version part must be an integer)rlentuple ValueError)rPparts version_infos r#_convert_python_versionrWs  KK E 5zA~> 5zQa u:>1XuQRy)E<9599  $  <;, e.g. 'pp', 'jy', 'cp', or 'ip'. If not specified, then the current interpreter implementation is used. Use 'py' to force implementation-agnostic wheels.z--abir2abiaLOnly use wheels compatible with Python abi , e.g. 'pypy_41'. If not specified, then the current interpreter abi tag is used. Use this option multiple times to specify multiple abis supported by the target interpreter. Generally you will need to specify --implementation, --platform, and --python-version when using this option.c|jt|jt|jt|jt yrJ)r*r1r0r3r2)cmd_optss r#add_target_python_optionsrsD  $ () () r%ctt|j|j|j|j}|S)N)r1py_version_infor2r3)rr1r0r2r3)r) target_pythons r#make_target_pythonrs6 ##.. \\-- M r%c"tdddddS)Nz--prefer-binary prefer_binaryrcFzSPrefer binary packages over source packages, even if the source packages are newer.rdrr]r%r#rrs   )  r%z --cache-dir cache_dirzStore the cache data in .)r_reryrvr^c| t|d|j_y#t$r!}t||t|Yd}~7d}~wwxYw)z Process a value provided for the --no-cache-dir option. This is an optparse.Option callback for the --no-cache-dir option. NrF)rrr$rrr)r!rOrPr excs r#_handle_no_cache_dirrsM  D e $FMM D vf#c( C C Ds ! A AA z--no-cache-dirzDisable the cache.)r_r`rr^no_cachez --no-depsz--no-dependenciesr6z#Don't install package dependencies.no_depsc|jd\}}}|sd}n2tj|jdk7rd}t ||||j j j||fy)a Process a value provided for the --group option. Splits on the rightmost ":", and validates that the path (if present) ends in `pyproject.toml`. Defaults the path to `pyproject.toml` when one is not given. `:` cannot appear in dependency group names, so this is a safe and simple parse. This is an optparse.Option callback for the dependency_groups option. :zpyproject.tomlz*group paths use 'pyproject.toml' filenamesrN) rpartitionpathlibPurePathr(r$rdependency_groupsr)r!rOrPr rLsep groupnamer"s r#_handle_dependency_grouprsm!++C0D#y    D ! & &*: :>C vf# > MM##**D)+<=r%z--grouprz [path:]groupzInstall a named dependency-group from a "pyproject.toml" file. If a path is given, the name of the file must be "pyproject.toml". Defaults to using "pyproject.toml" in the current directory.)r_rervr`rryr^z--ignore-requires-pythonignore_requires_pythonz'Ignore the Requires-Python information.z--no-build-isolationrC store_falseTzDisable isolation when building a modern source distribution. Build dependencies specified by PEP 518 must be already installed if this option is used.no_build_isolationz--check-build-dependenciescheck_build_depszCheck the build dependencies.z --use-pep517 use_pep517cd|jd\}}}|dk7r|jd|dt|j|j}|#i}t |j|j|||vr3t ||tr||j|y|||g||<y|||<y)N= Arguments to z must be of the form KEY=VAL) partitionrrrr_r isinstancelistr)r!rrPr keyrvalr_s r#_handle_config_settingsrbsOOC(MCc cz }WI-IJK 6==&++ .D | v{{D1 d{ d3i & I  S !cC(DIS r%z-Cz--config-settingsconfig_settingssettingszConfiguration settings to be passed to the build backend. Settings take the form KEY=VALUE. Use multiple --config-settings options to pass multiple keys to the backend.)r_rvr`rryr^z --no-cleanz!Don't clean up build directories.)r`rer^no_cleanz--prezYInclude pre-release and development versions. By default, pip only finds stable versions.prez--jsonz.Output data in a machine-readable JSON format.jsonz--disable-pip-version-checkdisable_pip_version_checkz{Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index.z--root-user-actionroot_user_actionwarnignorezBAction if pip is run as a root user [warn, ignore] (default: warn))r_rerwr^c|jjsi|j_ |jdd\}}t vr4|j dj |djt |jjj|gjy#t$r|j d|dYwxYw)zkGiven a value spelled "algo:digest", append the digest to a list pointed to in a dict by the algo name.rrrzE must be a hash name followed by a value, like --hash=sha256:abcde...z&Allowed hash algorithms for {} are {}.z, N) rhashesrrrrformatr setdefaultr)r!rrPr algodigests r#_handle_merge_hashrs ==  !  {{3* f =  4 ; ;=1   MM##D"-44V<   G9%   sB00CCz--hashr stringzgVerify that the package's archive matches this hash before installing. Example: --hash=sha256:abcdef...)r_r`rrvr^hashz--require-hashesrequire_hasheszRequire a hash to check each requirement against, for repeatable installs. This option is implied when any package in a requirements file has a --hash option.z--pathz^Restrict to the specified installation path for listing packages (can be used multiple times).)r_rvr`r^ list_pathcd|jr$|js |jr tdyy)Nz2Cannot combine '--path' with '--user' or '--local')rLuserlocalr)r)s r#check_list_path_optionrs(||OPP*7|r%z --excludeexcludespackagerVz)Exclude specified package from the output)r_r`ryrvr^ list_excludez--no-python-version-warningno_python_version_warning truststorezno-binary-enable-wheel-cachez --use-featurefeatures_enabledfeaturez fast-depszbuild-constraintzr;s # MM 971B=+;4.   8 $  %P;.%$.. '      %,     - % ! (/      ( $ -4    W -) 6=  &  H 62!(   9 !")    O" #*     # # ")    ! "  '       '.    (  0 ' # %      +  #*     '# +2   8   +'  '     P  ")    S " )0      )%")      = "   &       &-      5 & " $+    OO  $  #*     L #       / %          >$(   ),6B   ),6B $$$+      J $   : 0  0  0), 06B 0  0)0     #     )%*)0     * )%  &      $  $+      )$ $ $$%($2>$ $:#*    !  # ")     ." > >>%(>2>> >2,3     %  C ,( 18  !  2 1--4      -) +2     ( +'       C  ),6B &*1    $  , *& #*    , # %    & &    9 4; ! $   A 40+2    X  M +'= = =),=6B= =0&       ?  )0     - )% $+     - $ Q '.      4' #4; ! $    40" *1         H *& 18  &     Q 1- &      !!5! ~B $  ^r%