zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
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
U
H=®d’ã@sNddlmZddlZddlZddlZddlZddlZddlmZddl    m
Z
ddlm Z ddl mZddlmZddlmZdd    lmZdd
lmZdd lmZdd lmZerèdd lmZddlmZmZm Z ddl!m"Z"ddl#m$Z$e %e&¡Z'dd„Z(dd„Z)dd„Z*dd„Z+dd„Z,dd„Z-dd„Z.dd „Z/d!d"„Z0Gd#d$„d$eƒZ1dS)%é)Úabsolute_importN)Ú pkg_resources)Úwhere)Ú__file__)Ú
cmdoptions)ÚCommand)Úmake_target_python)ÚSUCCESS)Ú
indent_log)Úget_pip_version)ÚMYPY_CHECK_RUNNING)Ú
ModuleType)ÚListÚOptionalÚDict)ÚValues)Ú ConfigurationcCst d||¡dS)Nz%s: %s)ÚloggerÚinfo)ÚnameÚvalue©rúSD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/commands/debug.pyÚ
show_valuesrc    CsFt d¡ttdƒr"tj}|j}nd}tƒtd|ƒW5QRXdS)Nzsys.implementation:ÚimplementationÚr)rrÚhasattrÚsysrrr
r)rÚimplementation_namerrrÚshow_sys_implementation#s
 
rc    CsPtj tj t¡dd¡}t|ƒ}dd„| ¡Dƒ}W5QRXtdd„|DƒƒS)NÚ_vendorz
vendor.txtcSs(g|] }d|kr| ¡ dd¡d‘qS)ú==ú ér)ÚstripÚsplit©Ú.0ÚlinerrrÚ
<listcomp>;sÿz)create_vendor_txt_map.<locals>.<listcomp>css|]}| dd¡VqdS)r!r#N)r%r&rrrÚ    <genexpr>?sz(create_vendor_txt_map.<locals>.<genexpr>)ÚosÚpathÚjoinÚdirnameÚ pip_locationÚopenÚ    readlinesÚdict)Zvendor_txt_pathÚfÚlinesrrrÚcreate_vendor_txt_map0s
ý
ÿr5cCs:| ¡}|dkrd}td |¡tƒtƒddttj|ƒS)NÚ
setuptoolsrzpip._vendor.{}r)Úlevel)ÚlowerÚ
__import__ÚformatÚglobalsÚlocalsÚgetattrÚpipr )Ú module_namerrrÚget_module_from_module_nameBsür@cCsPt|ƒ}t|ddƒ}|sLt tj |j¡g¡}| tj     
|¡¡}t|ddƒ}|S)NÚ __version__Úversion) r@r=rÚ
WorkingSetr+r,r.rÚfindÚ RequirementÚparse)r?ÚmodulerBZpkg_setÚpackagerrrÚget_vendor_version_from_moduleSs ÿ rIcCsR| ¡D]D\}}d}t|ƒ}|s*d}|}n||kr<d |¡}t d|||¡qdS)z{Log the actual version and print extra info if there is
    a conflict or if the actual version could not be imported.
    rzM (Unable to locate actual module version, using vendor.txt specified version)z5 (CONFLICT: vendor.txt suggests version should be {})z%s==%s%sN)ÚitemsrIr:rr)Úvendor_txt_versionsr?Zexpected_versionZ extra_messageZactual_versionrrrÚshow_actual_vendor_versionsgsÿrLc    Cs.t d¡tƒ}tƒt|ƒW5QRXdS)Nzvendored library versions:)rrr5r
rL)rKrrrÚshow_vendor_versionsys
rMc        Cs¼d}t|ƒ}| ¡}| ¡}d}|r.d |¡}d t|ƒ|¡}t |¡|jdkrpt|ƒ|krpd}|d|…}nd}tƒ8|D]}t t    |ƒ¡q€|r®dj|d    }t |¡W5QRXdS)
rz  (target: {})zCompatible tags: {}{}r#TFz?...
[First {tag_limit} tags shown. Pass --verbose to show all.])Ú    tag_limit)
rÚget_tagsÚ format_givenr:ÚlenrrÚverboser
Ústr)    ÚoptionsrOÚ target_pythonÚtagsZformatted_targetÚsuffixÚmsgZ tags_limitedÚtagrrrÚ    show_tags‚s,
 
ÿýr[csttƒ}| ¡D]\}}| | d¡d¡q|s4dSdddg‰‡fdd„|Dƒ}|sXd    Sd    |krj| d    ¡d
 |¡S) NÚ.rz Not specifiedÚinstallÚwheelÚdownloadcsg|]}|ˆkr|‘qSrr)r'r7©Zlevels_that_override_globalrrr)®sz"ca_bundle_info.<locals>.<listcomp>Úglobalz, )ÚsetrJÚaddr%Úremover-)ÚconfigÚlevelsÚkeyÚ_Zglobal_overriding_levelrr`rÚca_bundle_info¤s
 
ÿ
ric@s(eZdZdZdZdZdd„Zdd„ZdS)    Ú DebugCommandz$
    Display debug information.
    z
      %prog <options>TcCs,t |j¡|j d|j¡|jj ¡dS)Nr)rÚadd_target_python_optionsÚcmd_optsÚparserÚinsert_option_groupreÚload)ÚselfrrrÚ add_optionsÂs zDebugCommand.add_optionscCsÌt d¡tdtƒƒtdtjƒtdtjƒtdt ¡ƒtdt ¡ƒtdt     
¡ƒtdtj ƒt ƒtd    t |jjƒƒtd
tj d
¡ƒtd tj d ¡ƒtd tƒƒtd tjjƒtƒt|ƒtS)Nz¸This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.z pip versionz sys.versionzsys.executablezsys.getdefaultencodingzsys.getfilesystemencodingzlocale.getpreferredencodingz sys.platformz'cert' config valueÚREQUESTS_CA_BUNDLEÚCURL_CA_BUNDLEzpip._vendor.certifi.where()zpip._vendor.DEBUNDLED)rÚwarningrr rrBÚ
executableÚgetdefaultencodingÚgetfilesystemencodingÚlocaleÚgetpreferredencodingÚplatformrrirmrer+ÚenvironÚgetrr>r Ú    DEBUNDLEDrMr[r    )rprUÚargsrrrÚrunÈs,ÿ   ÿ  zDebugCommand.runN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__ÚusageÚignore_require_venvrqrrrrrrj¹s
rj)2Ú
__future__rrxÚloggingr+rÚ pip._vendorr>rÚpip._vendor.certifirrr/Zpip._internal.clirÚpip._internal.cli.base_commandrZpip._internal.cli.cmdoptionsrÚpip._internal.cli.status_codesr    Úpip._internal.utils.loggingr
Úpip._internal.utils.miscr Úpip._internal.utils.typingr Útypesr ÚtypingrrrÚoptparserÚpip._internal.configurationrÚ    getLoggerr€rrrr5r@rIrLrMr[rirjrrrrÚ<module>s>              
     "