a Re @sdZddlZddlZddlZddlZddlmZmZddlm Z ddl m Z ddl m Z ddlmZddlmZeeZd eeeed d d ZdS) z Primary application entrypoint. N)ListOptional) autocomplete) parse_command)create_command)PipError) deprecation)argsreturnc Cs|durtjdd}ttzt|\}}WnNty}z6tjd|tjt j t dWYd}~n d}~00zt t jdWn2t jy}ztd|WYd}~n d}~00t|d|vd}||S)NzERROR: z%Ignoring error %s when setting localez --isolated)isolated)sysargvrinstall_warning_loggerrrrstderrwriteoslinesepexitlocale setlocaleLC_ALLErrorloggerdebugrmain)r cmd_namecmd_argsexcecommandr"/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/cli/main.pyr-s  "r)N)__doc__rloggingrrtypingrr pip._internal.cli.autocompletionrpip._internal.cli.main_parserrpip._internal.commandsrpip._internal.exceptionsrZpip._internal.utilsr getLogger__name__rstrintrr"r"r"r#s