� �Rec@@s�dZddlmZmZddlZddlZddlZddlZddlZddl Z ddl Z ddl m Z ddl mZddlmZmZddlmZmZmZmZddlmZmZmZmZmZmZmZdd lm Z dd l!m"Z"dd l#m$Z$m%Z%dd l&m'Z'm(Z(dd l)m*Z*m+Z+ddl,m-Z-ddl.m/Z/e-r�ddl0m1Z1m2Z2m3Z3m4Z4ddlm5Z5ddl)m6Z7ndgZ8ej9e:�Z;defd��YZ<dS(s(Base Command class, and related routinesi(tabsolute_importtprint_functionN(t cmdoptions(tCommandContextMixIn(tConfigOptionParsertUpdatingDefaultsHelpFormatter(tERRORtPREVIOUS_BUILD_DIR_ERRORt UNKNOWN_ERRORtVIRTUALENV_NOT_FOUND(t BadCommandt CommandErrortInstallationErrortNetworkConnectionErrortPreviousBuildDirErrortSubProcessErrortUninstallationError(t deprecated(tcheck_path_owner(tBrokenStdoutLoggingErrort setup_logging(tget_progtnormalize_path(tglobal_tempdir_managerttempdir_registry(tMYPY_CHECK_RUNNING(trunning_under_virtualenv(tListtOptionaltTupletAny(tValues(tTempDirectoryTypeRegistrytCommandcB@sVeZdZeZed�Zd�Zd�Zd�Z d�Z d�Z d�Z RS(cC@s�tt|�j�i|jd6djt�|�d6t�d6td6|d6|jd6|d6}||_ ||_ t |�|_ d|_d j|j j��}tj|j |�|_tjtj|j �}|j j|�|j�dS( Ntusages{} {}tprogt formattertadd_help_optiontnamet descriptiontisolateds {} Options(tsuperR!t__init__R"tformatRRtFalset__doc__R&tsummaryRtparsertNoneRt capitalizetoptparset OptionGrouptcmd_optsRtmake_option_groupt general_grouptadd_option_groupt add_options(tselfR&R.R(t parser_kwt optgroup_nametgen_opts((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli/base_command.pyR*>s(        cC@sdS(N((R9((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli/base_command.pyR8^scC@st|d� st�dS(sf This is a no-op so that commands by default do not do the pip version check. tno_indexN(thasattrtAssertionError(R9toptions((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli/base_command.pythandle_pip_version_checkbscC@s t�dS(N(tNotImplementedError(R9R@targs((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli/base_command.pytrunlscC@s|jj|�S(N(R/t parse_args(R9RC((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli/base_command.pyREpscC@s6z$|j��|j|�SWdQXWdtj�XdS(N(t main_contextt_maintloggingtshutdown(R9RC((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli/base_command.pytmainus c C@s�|jt��|_|jt��|j|�\}}|j|j|_td|jd|jd|j �}t j d d%kr�|j r�d}t j�dkr�d|}nt|d dd d �nt j d d&kr|j rd}t|d dd d �n|jr!dtjd<n|jrFdj|j�tjd<n|jr�|j r�t�s�tjd�t jt�q�n|jr�t|j�|_t|j�s�tj d|j�d|_q�nt!|dd�rtddd dd ddd�nd|j"kr.tjd�t jt#�nz�y/|j$||�}t%|t&�s[t'�|SWnVt(k r�}tjt)|��tj*ddt+�t,St-t.t/t0t1fk r�}tjt)|��tj*ddt+�t#St2k r}tjd |�tj*ddt+�t#St3k rct4d!d"t j5�|t6j7kr_t8j9d"t j5�nt#St:k r�tjd#�tj*ddt+�t#St;k r�tjd$dt+�t<SXWd|j=|�XdS('Nt verbositytno_colort user_log_fileiis�pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-supporttCPythonsPython 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. t replacementtgone_ins21.0iis�Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021.t1t PIP_NO_INPUTt tPIP_EXISTS_ACTIONs2Could not find an activated virtualenv (required).s�The directory '%s' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.t build_dirtreasonsBThe -b/--build/--build-dir/--build-directory option is deprecated.sOuse the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-cleans20.3tissuei� tresolverss--unstable-feature=resolver is no longer supported, and has been replaced with --use-feature=2020-resolver instead.sException information:texc_infos%ss ERROR: Pipe to stdout was brokentfilesOperation cancelled by users Exception:(ii(ii(>t enter_contextRRREtverbosetquietRKRRLtlogtsyst version_infotno_python_version_warningtplatformtpython_implementationRR0tno_inputtostenviront exists_actiontjoint require_venvtignore_require_venvRtloggertcriticaltexitR t cache_dirRRtwarningtgetattrtunstable_featuresRRDt isinstancetintR?RtstrtdebugtTrueRR RR RR R RtprinttstderrRHtDEBUGt tracebackt print_exctKeyboardInterruptt BaseExceptionRRA(R9RCR@t level_numbertmessagetstatustexc((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli/base_command.pyRG}s�                  N( t__name__t __module__R0R"R,RjR*R8RARDRERJRG(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli/base_command.pyR!:s    (=R-t __future__RRRHtlogging.configR2ReRbR_Rztpip._internal.cliRt!pip._internal.cli.command_contextRtpip._internal.cli.parserRRtpip._internal.cli.status_codesRRRR tpip._internal.exceptionsR R R R RRRtpip._internal.utils.deprecationRtpip._internal.utils.filesystemRtpip._internal.utils.loggingRRtpip._internal.utils.miscRRtpip._internal.utils.temp_dirRRtpip._internal.utils.typingRtpip._internal.utils.virtualenvRttypingRRRRRR tTempDirRegistryt__all__t getLoggerR�RkR!(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli/base_command.pyt<module>s6       "4 "