2biW&SSKrSSKrSSKrSSKJr SSKJrJrJr SSK J r SSK J r J r SSKJrJrJrJr SSKJr SSKJr SS KJrJr \R4"\5r"S S \ 5rg) N)Values)AnyListOptional)Command)ERRORSUCCESS) ConfigurationKindget_configuration_fileskinds)PipError) indent_log)get_prog write_outputcb\rSrSrSrSrSrSSjrS\S \ \ S\ 4S jr S\S \ S\\4S jrS\S \ \ SS4S jrS\S \ \ SS4SjrS\S \ \ SS4SjrS\S \ \ SS4SjrS\S \ \ SS4SjrS\SS4SjrSSjrS\S \ \ SS4SjrS \ \ S\ S\ S\4SjrSSjrS\S\ 4SjrSrg)ConfigurationCommanda Manage local and global configuration. Subcommands: - list: List the active configuration (or from the file specified) - edit: Edit the configuration file in an editor - get: Get the value associated with command.option - set: Set the command.option=value - unset: Unset the value associated with command.option - debug: List the configuration files and values defined under them Configuration keys should be dot separated command and option name, with the special prefix "global" affecting any command. For example, "pip config set global.index-url https://example.org/" would configure the index url for all commands, but "pip config set download.timeout 10" would configure a 10 second timeout only for "pip download" commands. If none of --user, --global and --site are passed, a virtual environment configuration file is used if one is active and the file exists. Otherwise, all modifications happen to the user file by default. Ta$ %prog [] list %prog [] [--editor ] edit %prog [] get command.option %prog [] set command.option value %prog [] unset command.option %prog [] debug returnNc8URRSSSSSS9 URRSSSS S S9 URRS S SS S S9 URRSSSS SS9 URRSUR5 g)Nz--editoreditorstorez\Editor to use to edit the file. Uses VISUAL or EDITOR environment variables if not provided.)destactiondefaulthelpz--global global_file store_trueFz+Use the system-wide configuration file onlyz--user user_filez$Use the user configuration file onlyz--site site_filez3Use the current environment configuration file onlyr)cmd_opts add_optionparserinsert_option_groupselfs ږ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_internal/commands/configuration.py add_options ConfigurationCommand.add_options:s   9 !    > !    7 !    F !  ''4==9optionsargscURURURURURUR S.nU(a USU;a4[ RSSR[U555 [$USnURXS;S9n[URUS9UlUR R#5 X4"XSS5 [$$![a2n[ RURS5 [sSnA$SnAff=f![a2n[ RURS5 [sSnA$SnAff=f) N)listeditgetsetunsetdebugrzNeed an action (%s) to perform.z, )r0r1r2r/) need_value)isolated load_only) list_valuesopen_in_editorget_nameset_name_value unset_namelist_config_valuesloggererrorjoinsortedr_determine_filerr,r isolated_mode configurationloadr )r&r+r,handlersrr6es r'runConfigurationCommand.run`s>$$''==&&__,,  tAwh. LL1 &*+ La ,,/N%N-I+**i  !   W12h / #  LL #L   LL #L s<C) D() D%3'D D% D%( E$2'EE$E$r4c[RUR4[RUR4[R UR 44VVs/sHup4U(dMUPM nnnU(dXU(dg[S[5[R 55(a[R $[R$[U5S:XaUS$[S5es snnf)Nc3`# UH$n[RRU5v M& g7f)N)ospathexists).0site_config_files r' 7ConfigurationCommand._determine_file..s)(M$/00(Ms,.r7rzLNeed exactly one file to operate upon (--user, --site, --global) to perform.) r USERrGLOBALrSITEr anyr lenr)r&r+r4keyvalue file_optionss r'rB$ConfigurationCommand._determine_filesW../w223W../      (?(A%**(Mzz!zz!  ! #? " 5  1 s  C/(C/cURUSSS9 [URR55Hup4[ SX45 M g)Nr.rn%s=%r) _get_n_argsrArDitemsrr&r+r,rXrYs r'r8 ConfigurationCommand.list_valuessA v+ !3!3!9!9!; "\M"\s %AB:: C rtcURRU5R5H$up#[5 [ SX#5 SSS5 M& g!,(df  M8=f)z.Get key-value pairs from the file of a variantz%s: %sN)rDget_values_in_configrarr)r&rtnamerYs r'rs-ConfigurationCommand.print_config_file_valuessE--BB7KQQSKDXt3Ts A A" c[SS5 [5 [URR 55H$upSUR 53n[SX25 M& SSS5 g!,(df  g=f)z5Get key-values pairs present as environment variablesrpenv_varPIP_r_N)rrrArDget_environ_varsupper)r&rXrYr~s r'rq)ConfigurationCommand.print_env_var_valuessXUI& \$T%7%7%H%H%JK   .Wg5L\\s A A,, A:cURU5nURR5nUc [S5eSU;a[SU35e[R "USUS3SS9 g![ anUR(dX5leSnAf[Ra)n[SRUR55eSnAff=f)Nz%Could not determine appropriate file."z4Can not open an editor for a file name containing " z "T)shellz*Editor Subprocess exited with exit code {}) _determine_editorrDget_file_to_editr subprocess check_callFileNotFoundErrorfilenameCalledProcessErrorformat returncode)r&r+r,rrvrGs r'r9#ConfigurationCommand.open_in_editors''0""335 =BC C E\GwO    ! !VHBugQ"7t D  ::# ,, <CCALLQ  s$A++ C 5B  C $$CC exampler^c[U5U:wa&SRU[5U5n[U5eUS:XaUS$U$)zAHelper to make sure the command got the right number of argumentszJGot unexpected number of arguments, expected {}. (example: "{} config {}")r7r)rWrrr)r&r,rr^msgs r'r` ConfigurationCommand._get_n_argssH t9>,fQ G, 3-  67NKr*cURR5 g![a! [R S5 [ S5ef=f)Nz:Unable to save configuration. Please report this as a bug.zInternal Error.)rDsave Exceptionr> exceptionrr%s r'rj(ConfigurationCommand._save_configurationsG .    # # % .   L ,- -  .s +AcURb UR$S[R;a[RS$S[R;a[RS$[S5e)NVISUALEDITORz"Could not determine editor to use.)rrLenvironr)r&r+s r'r&ConfigurationCommand._determine_editorsX >> %>> !  #::h' '  #::h' '?@ @r*)rD)rN)__name__ __module__ __qualname____firstlineno____doc__ignore_require_venvusager(rrstrintrHboolrr rBr8r:r;r<r=rsrqr9rr`rjr__static_attributes__r*r'rrse0 E$:L+6+c+s+Z v 4 HTN <.6.c.t. ""d3i"D" #f#DI#$# #&#S #d# ?&?S ?d? 444 6fDI$0 S C C C  .AACAr*r)loggingrLroptparsertypingrrrpip._internal.cli.base_commandrpip._internal.cli.status_codesrr pip._internal.configurationr r r r pip._internal.exceptionsrpip._internal.utils.loggingrpip._internal.utils.miscrr getLoggerrr>rrr*r'rsR &&29 .2;   8 $DA7DAr*