3 Bu_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)m6Z7dgZ8ej9e:Z;GdddeZs&   zCommand.__init__cCsdS)Nr>)r9r>r>r?r8^szCommand.add_optionscCst|d stdS)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 |jj|S)N)r0 parse_args)r9rFr>r>r?rHpszCommand.parse_argscCs.z|j |j|SQRXWdtjXdS)N) main_context_mainloggingshutdown)r9rFr>r>r?mainus z Command.maincCs|jt|_|jt|j|\}}|j|j|_t|j|j|j d}t j ddd"kr|j rd}t jdkr|d|}t|dddt j ddd#kr|j rd }t|ddd|jrd tjd <|jrdj|jtjd<|jo|j r ts tjdt jt|jr>t|j|_t|js>tjd|jd|_t |ddr\tdddddd|j!kr|tjdt jt"zpy |j#||}t$|t%st&|St'k r}z tjt(|tj)dddt*Sd}~Xn t+t,t-t.t/fk r&}z tjt(|tj)dddt"Sd}~Xnt0k r`}ztjd|tj)dddt"Sd}~Xnt1k rt2dt j3d|t4j5krt6j7t j3dt"St8k rtjd tj)dddt"St9k rtjd!ddt:SXWd|j;|XdS)$N) verbosityno_color user_log_filezpip 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_inzPython 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:)rQrR)rVrW)< 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  $