U v_V$@sjdZddlmZmZddlZddlZddlZddlZddlZddl 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-rFddl0m1Z1m2Z2m3Z3m4Z4ddlm5Z5ddl)m6Z7dgZ8e9e:Z;GdddeZs*    zCommand.__init__cCsdSNr?)r9r?r?r@r8^szCommand.add_optionscCst|drtdS)zf This is a no-op so that commands by default do not do the pip version check. no_indexN)hasattrAssertionError)r9optionsr?r?r@handle_pip_version_checkbsz Command.handle_pip_version_checkcCstdSrA)NotImplementedError)r9rEargsr?r?r@runlsz Command.runcCs |j|SrA)r0 parse_argsr9rHr?r?r@rJpszCommand.parse_argsc Cs>z.|||W5QRW SQRXW5tXdSrA)loggingshutdown main_context_mainrKr?r?r@mainus $z Command.mainc CsJ|t|_|t||\}}|j|j|_t|j|j|j d}t j dddkr|j sd}t dkrzd|}t|dddt j ddd kr|j sd }t|ddd|jrd tjd <|jrd |jtjd<|jr|jststdt t|jr:t|j|_t|js:td|jd|_t |ddrXtdddddd|j!krxtdt t"zz(|$||}t%|t&st'|WWSt(k r}z.tt)|tj*dddt+WYWVSd}~XYnBt,t-t.t/t0fk rJ}z.tt)|tj*dddt"WYWSd}~XYnt1k r}z*td|tj*dddt"WYWSd}~XYnt2k rt3dt j4d|t5j6krt7j8t j4dt"YWfSt9k r tdtj*dddt"YW2St:k r4tjd ddt;YWSXW5|#|XdS)!N) verbosityno_color user_log_file)rTzpip 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-supportCPythonzPython 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. z21.0) replacementgone_in)zPython 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.1 PIP_NO_INPUT PIP_EXISTS_ACTIONz2Could not find an activated virtualenv (required).zThe 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. build_dirzBThe -b/--build/--build-dir/--build-directory option is deprecated.zOuse the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-cleanz20.3i )reasonrWrXissueresolverzs--unstable-feature=resolver is no longer supported, and has been replaced with --use-feature=2020-resolver instead.zException information:T)exc_infoz%sz ERROR: Pipe to stdout was broken)filezOperation cancelled by userz Exception:)< enter_contextrrrJverbosequietrQrrRlogsys version_infono_python_version_warningplatformpython_implementationrno_inputosenviron exists_actionjoin require_venvignore_require_venvrloggercriticalexitr cache_dirrrwarninggetattrunstable_featuresrrFrI isinstanceintrDrstrdebugr rrr rrr rprintstderrrLDEBUG traceback print_excKeyboardInterrupt BaseExceptionr )r9rHrE level_numbermessagestatusexcr?r?r@rO}s                z Command._main)F) __name__ __module__ __qualname__r$rtr,r8rFrIrJrPrO __classcell__r?r?r=r@r#:s  )=r. __future__rrrLlogging.configr2rorlrirZpip._internal.clir!pip._internal.cli.command_contextrpip._internal.cli.parserrrpip._internal.cli.status_codesrr r r pip._internal.exceptionsr r rrrrrpip._internal.utils.deprecationrpip._internal.utils.filesystemrpip._internal.utils.loggingrrpip._internal.utils.miscrrpip._internal.utils.temp_dirrrpip._internal.utils.typingrpip._internal.utils.virtualenvrtypingrrrr r!r"ZTempDirRegistry__all__ getLoggerrrur#r?r?r?r@s6  $