B ReV$@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__cCsdS)Nr>)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_checkcCstdS)N)NotImplementedError)r9rCargsr>r>r?runlsz Command.runcCs |j|S)N)r0 parse_args)r9rFr>r>r?rHpszCommand.parse_argsc Cs.z| ||SQRXWdtXdS)N) main_context_mainloggingshutdown)r9rFr>r>r?mainus z Command.mainc Cs|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"zvy |#||}t$|t%st&|St'k r}z tt(|tj)dddt*Sd}~XYnt+t,t-t.t/fk r&}z tt(|tj)dddt"Sd}~XYnt0k rb}ztd|tj)dddt"Sd}~XYnt1k rt2dt j3d|t4j5krt6j7t j3dt"St8k rtdtj)dddt"St9k rtjd ddt:SXWd|;|XdS)!N) verbosityno_color user_log_file)rQzpip 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 )reasonrTrUissueresolverzs--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_contextrrrHverbosequietrNrrOlogsys version_infono_python_version_warningplatformpython_implementationrno_inputosenviron exists_actionjoin require_venvignore_require_venvrloggercriticalexitr cache_dirrrwarninggetattrunstable_featuresrrG isinstanceintrBrstrdebugr rrr rrr rprintstderrrKDEBUG traceback print_excKeyboardInterrupt BaseExceptionr rD)r9rFrC level_numbermessagestatusexcr>r>r?rJ}s              z Command._main)F) __name__ __module__ __qualname__r$rqr,r8rDrGrHrMrJ __classcell__r>r>)r=r?r#:s  )=r. __future__rrrKlogging.configr2rlrirfrZpip._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__ getLoggerrrrr#r>r>r>r?s6  $