hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Ë
ñúhy'ãóڗddlmZddlZddlZddlZddlmZddlmZm    Z    ddl
m Z ddl m Z mZddlmZmZmZmZddlmZdd    lmZdd
lmZmZej6e«ZGd „d e «Zy) é)Ú annotationsN)ÚValues)ÚAnyÚCallable)ÚCommand)ÚERRORÚSUCCESS)Ú ConfigurationÚKindÚget_configuration_filesÚkinds)ÚPipError)Ú
indent_log)Úget_progÚ write_outputcó—eZdZdZdZdZdd„Zdd„Zdd„Zdd„Z    dd„Z
dd    „Z dd
„Z dd „Z dd „Zdd „Zdd„Zdd„Zdd„Zdd„Zdd„Zy)Ú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 [<file-option>] list
        %prog [<file-option>] [--editor <editor-path>] edit
 
        %prog [<file-option>] get command.option
        %prog [<file-option>] set command.option value
        %prog [<file-option>] unset command.option
        %prog [<file-option>] debug
    cóP—|jjddddd¬«|jjdddd    d
¬«|jjd d dd    d ¬«|jjdddd    d¬«|jjd|j«y)Nz--editorÚeditorÚstorez\Editor to use to edit the file. Uses VISUAL or EDITOR environment variables if not provided.)ÚdestÚactionÚdefaultÚhelpz--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_optionÚparserÚinsert_option_group©Úselfs úWH:\Change_password\venv_build\Lib\site-packages\pip/_internal/commands/configuration.pyÚ add_optionsz ConfigurationCommand.add_options<s¼€Ø  ‰ × Ñ Ø ØØØð9ð     !ô        
ð      ‰ × Ñ Ø ØØØØ>ð     !ô    
ð      ‰ × Ñ Ø ØØØØ7ð     !ô    
ð      ‰ × Ñ Ø ØØØØFð     !ô    
ð      ‰ ×'Ñ'¨¨4¯=©=Õ9ócóŒ—|j|j|j|j|j|j
dœS)N)ÚlistÚeditÚgetÚsetÚunsetÚdebug)Ú list_valuesÚopen_in_editorÚget_nameÚset_name_valueÚ
unset_nameÚlist_config_valuesr#s r%Ú handler_mapz ConfigurationCommand.handler_mapbs>€à×$Ñ$Ø×'Ñ'Ø—=‘=Ø×&Ñ&Ø—_‘_Ø×,Ñ,ñ 
ð    
r'cób—|j«}|r|d|vr4tjddjt    |«««t
S|d}    |j ||dv¬«}t|j|¬«|_ |jj«    ||||dd«tS#t$r2}tj|jd«t
cYd}~Sd}~wwxYw#t$r2}tj|jd«t
cYd}~Sd}~wwxYw)NrzNeed an action (%s) to perform.z, )r+r,r-r*)Ú
need_value)ÚisolatedÚ    load_onlyé)r5ÚloggerÚerrorÚjoinÚsortedrÚ_determine_filerÚargsr
Ú isolated_modeÚ configurationÚloadr    )r$Úoptionsr@r5rr9Úes       r%ÚrunzConfigurationCommand.runls€Ø×&Ñ&Ó(ˆ ñt˜A‘w kÑ1Ü L‰LØ1Ø—    ‘    œ& Ó-Ó.ô ôˆLàa‘ˆð    Ø×,Ñ,Ø VÐ/NÐ%Nð-óˆIô+Ø×*Ñ*°iô
ˆÔð     ×Ñ×ÑÔ!ð    Ø ˆK˜Ñ  ¨¨a¨b¨Ô 2ô
ˆøô#ò    Ü L‰L˜Ÿ™ ™Ô #܍Lûð    ûôò    Ü L‰L˜Ÿ™ ™Ô #܍Lûð    ús<ÁB5 C3Â5    C0Â>'C+Ã%C0Ã+C0Ã3    D.Ã<'D)Ä#D.Ä)D.có¸—tj|jftj|jftj
|j ffDcgc]    \}}|r|‘Œ }}}|sN|sytd„t«tj
D««rtj
StjSt|«dk(r|dStd«‚cc}}w)Nc3óZK—|]#}tjj|«–—Œ%y­w)N)ÚosÚpathÚexists)Ú.0Úsite_config_files  r%ú    <genexpr>z7ConfigurationCommand._determine_file.<locals>.<genexpr>¡s&èø€òà$ô—‘—‘Ð/×0ñùs‚)+r:rzLNeed exactly one file to operate upon (--user, --site, --global) to perform.) r ÚUSERrÚGLOBALrÚSITErÚanyr Úlenr)r$rDr7ÚkeyÚvalueÚ file_optionss      r%r?z$ConfigurationCommand._determine_file’sҀô—‘˜W×.Ñ.Ð/Ü—‘˜w×2Ñ2Ð3Ü—‘˜W×.Ñ.Ð/ð÷
ᐐUñ
ò ð
ˆ ñ
ñÙØäñä(?Ó(AÄ%Ç*Á*Ñ(Môôô—z‘zÐ!ä—z‘zÐ!Ü Ó  !Ò #Ø ‘?Ð "äð 5ó
ð    
ùó1
sÁCcóޗ|j|dd¬«t|jj««D]3\}}t|j««D]\}}t    d||«ŒŒ5y)Nr)r©Únú%s=%r)Ú _get_n_argsr>rBÚitemsr©r$rDr@rTrUs     r%r/z ConfigurationCommand.list_values°sh€Ø ×ј˜v¨ÐÔ+ä  ×!3Ñ!3×!9Ñ!9Ó!;Ó<ò    2‰JˆCÜ$ U§[¡[£]Ó3ò 2‘
UܘW c¨5Õ1ñ 2ñ    2r'cóz—|j|dd¬«}|jj|«}td|«y)Nz
get [name]r:rXz%s)r[rBÚ    get_valuerr]s     r%r1zConfigurationCommand.get_name·s9€Ø×јt \°QÐÓ7ˆØ×"Ñ"×,Ñ,¨SÓ1ˆäT˜5Õ!r'cóŠ—|j|dd¬«\}}|jj||«|j«y)Nzset [name] [value]érX)r[rBÚ    set_valueÚ_save_configurationr]s     r%r2z#ConfigurationCommand.set_name_value½s@€Ø×%Ñ% dÐ,@ÀAÐ%ÓF‰
ˆˆUØ ×Ñ×$Ñ$ S¨%Ô0à × Ñ Õ"r'có‚—|j|dd¬«}|jj|«|j«y)Nz unset [name]r:rX)r[rBÚ unset_valuerc)r$rDr@rTs    r%r3zConfigurationCommand.unset_nameÃs9€Ø×јt ^°qÐÓ9ˆØ ×Ñ×&Ñ& sÔ+à × Ñ Õ"r'có†—|j|dd¬«|j«t|jj    ««D]k\}}t d|«|D]U}t «5tjj|«}t d||«|r|j||«ddd«ŒWŒmy#1swYŒdxYw)z9List config key-value pairs across different config filesr.rrXú%s:z%s, exists: %rN) r[Úprint_env_var_valuesr>rBÚiter_config_filesrrrIrJrKÚprint_config_file_values)r$rDr@ÚvariantÚfilesÚfnameÚ file_existss       r%r4z'ConfigurationCommand.list_config_valuesÉs¿€à ×ј˜w¨!ÐÔ,à ×!Ñ!Ô#ô% T×%7Ñ%7×%IÑ%IÓ%KÓLò    F‰NˆGUÜ ˜ Ô (Øò FÜ“\ñFÜ"$§'¡'§.¡.°Ó"7KÜ Ð!1°5¸+ÔFÙ"Ø×5Ñ5°g¸uÔE÷    FðFñ Fñ    F÷FðFús Á)AB7Â7C cóø—|jj|«j«D]B\}}t«5||k(r%|j«D]\}}t    d||«Œddd«ŒDy#1swYŒOxYw)z.Get key-value pairs from the file of a variantz%s: %sN)rBÚget_values_in_configr\rr)r$rkrmÚnamerUÚconfnameÚ    confvalues       r%rjz-ConfigurationCommand.print_config_file_valuesÙs„€à×-Ñ-×BÑBÀ7ÓK×QÑQÓSò    D‰KˆD%Ü“ñ Dؘ5’=Ø/4¯{©{«}òDÑ+˜ )Ü$ X¨x¸ÕCðD÷ Dð Dñ    D÷ Dð Dús º+A0Á0A9    cóò—tdd«t«5t|jj    ««D]%\}}d|j «›}td||«Œ'    ddd«y#1swYyxYw)z5Get key-values pairs present as environment variablesrgÚenv_varÚPIP_rZN)rrr>rBÚget_environ_varsÚupper)r$rTrUrus    r%rhz)ConfigurationCommand.print_env_var_valuesásk€äU˜IÔ&Ü ‹\ñ    6Ü$ T×%7Ñ%7×%HÑ%HÓ%JÓKò 6‘
UØ  §¡£  Ð.Ü˜W g¨uÕ5ñ 6÷    6÷    6ñ    6ús —A A-Á-A6cóz—|j|«}|jj«}|€ td«‚d|vrtd|›«‚    t    j
|›d|›dd¬«y#t $r}|js||_‚d}~wtj$r}td|j›«‚d}~wwxYw)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_editorrBÚget_file_to_editrÚ
subprocessÚ
check_callÚFileNotFoundErrorÚfilenameÚCalledProcessErrorÚ
returncode)r$rDr@rrmrEs      r%r0z#ConfigurationCommand.open_in_editorésÀØ×'Ñ'¨Ó0ˆà×"Ñ"×3Ñ3Ó5ˆØ ˆ=ÜÐBÓCÐ CØ E‰\ôØGÈÀwÐOóð ð    VÜ × !Ñ ! V H¨B¨u¨g°QÐ"7¸tÖ DøÜ ò    Ø—:’:Ø#”
Ø ûÜ×,Ñ,ò    VÜÐEÀaÇlÁlÀ^ÐTÓUÐ Uûð    Vús$Á A*Á*    B:Á3BÂB:ÂB5Â5B:cót—t|«|k7rd|›dt«›d|›d}t|«‚|dk(r|dS|S)zAHelper to make sure the command got the right number of argumentsz-Got unexpected number of arguments, expected z . (example: "z config z")r:r)rSrr)r$r@ÚexamplerYÚmsgs     r%r[z ConfigurationCommand._get_n_argsÿsT€ä ˆt‹9˜Š>à?À¸sðCÜ&›j˜\¨°'°¸"ð>ð ô˜3“-Ð à Š6ؘ‘7ˆNàˆKr'c󔗠   |jj«y#t$r!tj    d«t d«‚wxYw)Nz:Unable to save configuration. Please report this as a bug.zInternal Error.)rBÚsaveÚ    Exceptionr;Ú    exceptionrr#s r%rcz(ConfigurationCommand._save_configuration sG€ð    .Ø × Ñ × #Ñ #Õ %øÜò    .Ü × Ñ ØLô ôÐ,Ó-Ð -ð        .ús    ‚*Acóܗ|j |jSdtjvrtjdSdtjvrtjdStd«‚)NÚVISUALÚEDITORz"Could not determine editor to use.)rrIÚenvironr)r$rDs  r%r|z&ConfigurationCommand._determine_editorsX€Ø >‰>Ð %Ø—>‘>Ð !Ø œŸ™Ñ #Ü—:‘:˜hÑ'Ð 'Ø œŸ™Ñ #Ü—:‘:˜hÑ'Ð 'äÐ?Ó@Ð @r'N)ÚreturnÚNone)rz.dict[str, Callable[[Values, list[str]], None]])rDrr@ú    list[str]rÚint)rDrr7Úboolrz Kind | None)rDrr@r‘rr)rkr rmÚstrrr)r@r‘r…r”rYr’rr)rDrrr”)Ú__name__Ú
__module__Ú __qualname__Ú__doc__Úignore_require_venvÚusager&r5rFr?r/r1r2r3r4rjrhr0r[rcr|©r'r%rrsg„ñð0Ðð €Eó$:óL
ó$óL
ó<2ó"ó #ó #ó Fó Dó6óVó, ó    .ôAr'r)Ú
__future__rÚloggingrIr~ÚoptparserÚtypingrrÚpip._internal.cli.base_commandrÚpip._internal.cli.status_codesrr    Úpip._internal.configurationr
r r r Úpip._internal.exceptionsrÚpip._internal.utils.loggingrÚpip._internal.utils.miscrrÚ    getLoggerr•r;rr›r'r%ú<module>r§sTðÝ"ãÛ    ÛÝß å2ß9÷óõ .Ý2ß;à    ˆ×    Ñ    ˜8Ó    $€ôHA˜7õHAr'