U ÀÒ.eB ã@sÚddlmZddlZddlZddlZddlmZddlmZddl m Z ddl m Z ddl mZddlmZdd lmZdd lmZer¤dd lmZmZdd lmZe e¡Zd d„Zdd„Zdd„ZGdd„deƒZ dS)é)Úabsolute_importN)Ú cmdoptions)ÚCommand)Úmake_target_python)ÚSUCCESS)Ú indent_log)Úget_pip_version)ÚMYPY_CHECK_RUNNING)Ú format_tag)ÚAnyÚList)ÚValuescCst d ||¡¡dS)Nz{}: {})ÚloggerÚinfoÚformat)ÚnameÚvalue©rú@/usr/lib/python3.8/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Úsysrrrr)rZimplementation_namerrrÚshow_sys_implementations  rc Cs¼d}t|ƒ}| ¡}| ¡}d}|r.d |¡}d t|ƒ|¡}t |¡|jdkrpt|ƒ|krpd}|d|…}nd}tƒ�8|D]}t t |ƒ¡q€|r®dj|d �}t |¡W5QRXdS) Né rz (target: {})zCompatible tags: {}{}éTFz?... [First {tag_limit} tags shown. Pass --verbose to show all.])Ú tag_limit) rZget_tagsZ format_givenrÚlenrrÚverboserr ) ÚoptionsrZ target_pythonZtagsZformatted_targetÚsuffixÚmsgZ tags_limitedÚtagrrrÚ show_tags,s,  ÿýr$cs0eZdZdZdZdZ‡fdd„Zdd„Z‡ZS)Ú DebugCommandz$ Display debug information. z %prog Tcs4tt|ƒj||Ž|j}t |¡|j d|¡dS)Nr)Úsuperr%Ú__init__Úcmd_optsrZadd_target_python_optionsÚparserZinsert_option_group)ÚselfÚargsÚkwr(©Ú __class__rrr'Ws zDebugCommand.__init__cCsvt d¡tdtƒƒtdtjƒtdtjƒtdt ¡ƒtdt ¡ƒtdt   ¡ƒtdtj ƒ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.platform)rZwarningrrrÚversionÚ executableÚgetdefaultencodingÚgetfilesystemencodingÚlocaleZgetpreferredencodingÚplatformrr$r)r*r r+rrrÚrun^s ÿ   ÿ zDebugCommand.run) Ú__name__Ú __module__Ú __qualname__Ú__doc__ZusageZignore_require_venvr'r5Ú __classcell__rrr-rr%Ns  r%)!Z __future__rr3ZloggingrZpip._internal.clirZpip._internal.cli.base_commandrZpip._internal.cli.cmdoptionsrZpip._internal.cli.status_codesrZpip._internal.utils.loggingrZpip._internal.utils.miscrZpip._internal.utils.typingr Zpip._internal.wheelr Útypingr r Zoptparser Z getLoggerr6rrrr$r%rrrrÚs&            "