U n ak@sFddlmZddlZddlZddlZddlZddlZddlmZddl m Z ddlm Z ddl mZddlmZddlmZdd lmZdd lmZdd lmZdd lmZerdd lmZddlmZmZm Z m!Z!ddl"m#Z#e$e%Z&ddZ'ddZ(ddZ)ddZ*ddZ+ddZ,ddZ-ddZ.d d!Z/Gd"d#d#eZ0dS)$)absolute_importN) pkg_resources)where)__file__) cmdoptions)Command)make_target_python)SUCCESS) indent_log)get_pip_version)MYPY_CHECK_RUNNING) ModuleType)AnyListOptionalDict)ValuescCstd||dS)Nz{}: {})loggerinfoformat)namevaluer]C:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-6mt8ur68\pip\_internal\commands\debug.py show_value src CsFtdttdr"tj}|j}nd}ttd|W5QRXdS)Nzsys.implementation:implementationr)rrhasattrsysrrr r)rimplementation_namerrrshow_sys_implementation%s  r c CsPtjtjtdd}t|}dd|D}W5QRXtdd|DS)N_vendorz vendor.txtcSs(g|] }d|kr|dddqS)== r)stripsplit.0linerrr =sz)create_vendor_txt_map..css|]}|ddVqdS)r"r$N)r&r'rrr Asz(create_vendor_txt_map..)ospathjoindirname pip_locationopen readlinesdict)Zvendor_txt_pathflinesrrrcreate_vendor_txt_map2s  r6cCs:|}|dkrd}td|ttddttj|S)N setuptoolsrzpip._vendor.{}r)level)lower __import__rglobalslocalsgetattrpipr!) module_namerrrget_module_from_module_nameDsr@cCsTt|}t|dd}|sPttjt|dg}|tj |}t|dd}|S)N __version__rversion) r@r=r WorkingSetr,r-r/find Requirementparse)r?modulerBZpkg_setpackagerrrget_vendor_version_from_moduleVs  rIcCsX|D]J\}}d}t|}|s*d}|}n||kr.globalz, )setrLaddr&remover.)configlevelskeyrZglobal_overriding_levelrrbrca_bundle_infos   rjcs0eZdZdZdZdZfddZddZZS) DebugCommandz$ Display debug information. z %prog Tcs@tt|j|||j}t||jd||jj dS)Nr) superrk__init__cmd_optsradd_target_python_optionsparserinsert_option_grouprgload)selfargskwrn __class__rrrms  zDebugCommand.__init__cCstdtdttdtjtdtjtdttdttdt tdtj t td t |jjtd tjd td tjd td ttd tjjtt|tS)NzThis 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 valueREQUESTS_CA_BUNDLECURL_CA_BUNDLEzpip._vendor.certifi.where()zpip._vendor.DEBUNDLED)rwarningrr rrB executablegetdefaultencodinggetfilesystemencodinglocalegetpreferredencodingplatformr rjrprgr,environgetrr>r! DEBUNDLEDrOr]r )rsrWrtrrrruns,     zDebugCommand.run) __name__ __module__ __qualname____doc__usageignore_require_venvrmr __classcell__rrrvrrks  rk)1 __future__rr~loggingr,r pip._vendorr>rpip._vendor.certifirrr0Zpip._internal.clirpip._internal.cli.base_commandrZpip._internal.cli.cmdoptionsrpip._internal.cli.status_codesr pip._internal.utils.loggingr pip._internal.utils.miscr pip._internal.utils.typingr typesr typingrrrroptparser getLoggerrrrr r6r@rIrNrOr]rjrkrrrrs<                "