U .eO@sdZddlmZddlZddlZddlZddlZddlmZddl m Z ddl m Z ddl mZddlmZeeZd d d ZdS) z Primary application entrypoint. )absolute_importN) autocomplete) parse_command)create_command)PipError) deprecationc Cs|dkrtjdd}ttzt|\}}WnJtk r~}z,tjd|tjt j t dW5d}~XYnXzt t jdWn0t jk r}ztd|W5d}~XYnXt|d|kd}||S)Nz ERROR: %sz%Ignoring error %s when setting localez --isolated)isolated)sysargvrZinstall_warning_loggerrrrstderrwriteoslinesepexitlocale setlocaleLC_ALLErrorloggerdebugrmain)argsZcmd_nameZcmd_argsexceZcommandr6/usr/lib/python3.8/site-packages/pip/_internal/main.pyrs r)N)__doc__Z __future__rrZloggingrr Z pip._internal.cli.autocompletionrZpip._internal.cli.main_parserrZpip._internal.commandsrZpip._internal.exceptionsrZpip._internal.utilsrZ getLogger__name__rrrrrrs