관리-도구
편집 파일: main.cpython-38.pyc
U &?�f � @ s� d Z ddlZddlZddlZddlZddlZddlmZmZ ddl m Z ddlmZ ddl mZ ddlmZ ddlmZ e�e�Zdeee ed �d d�ZdS ) z Primary application entrypoint. � N)�List�Optional)�autocomplete)� parse_command)�create_command)�PipError)�deprecation)�args�returnc C s� | d krt jdd � } tjdtdd� t�� t� zt| �\}}W nL t k r� } z.t j �d|� �� t j �tj � t �d� W 5 d }~X Y nX zt�tjd� W n0 tjk r� } zt�d|� W 5 d }~X Y nX t|d|kd �}|�|�S ) N� �ignorez.*pkg_resources)�action�category�modulezERROR: � z%Ignoring error %s when setting localez --isolated)�isolated)�sys�argv�warnings�filterwarnings�DeprecationWarningr �install_warning_loggerr r r �stderr�write�os�linesep�exit�locale� setlocale�LC_ALL�Error�logger�debugr �main)r �cmd_name�cmd_args�exc�e�command� r) �D/opt/hc_python/lib/python3.8/site-packages/pip/_internal/cli/main.pyr# / s* �r# )N)�__doc__r �loggingr r r �typingr r � pip._internal.cli.autocompletionr �pip._internal.cli.main_parserr �pip._internal.commandsr �pip._internal.exceptionsr �pip._internal.utilsr � getLogger�__name__r! �str�intr# r) r) r) r* �<module> s