3 ”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)m6Z7dgZ8ej9e:ƒZ;Gdd„deƒZs&   zCommand.__init__cCsdS)Nr>)r9r>r>r?r8^szCommand.add_optionscCst|dƒ st‚dS)zf This is a no-op so that commands by default do not do the pip version check. Úno_indexN)ÚhasattrÚAssertionError)r9Úoptionsr>r>r?Úhandle_pip_version_checkbsz Command.handle_pip_version_checkcCst‚dS)N)ÚNotImplementedError)r9rCÚargsr>r>r?Úrunlsz Command.runcCs |jj|ƒS)N)r0Ú parse_args)r9rFr>r>r?rHpszCommand.parse_argscCs.z|jƒ� |j|ƒSQRXWdtjƒXdS)N)Ú main_contextÚ_mainÚloggingÚshutdown)r9rFr>r>r?Úmainus z Command.maincCs|jtƒƒ|_|jtƒƒ|j|ƒ\}}|j|j|_t|j|j|j d�}t j dd…d"krŠ|j rŠd}t jƒdkr|d|}t|ddd�t j dd…d#kr¶|j r¶d }t|ddd�|jrÆd tjd <|jrÞdj|jƒtjd<|joê|j �r tƒ�s tjdƒt jtƒ|j�r>t|jƒ|_t|jƒ�s>tjd|jƒd|_t |ddƒ�r\tddddd�d|j!k�r|tjdƒt jt"ƒ�zpy |j#||ƒ}t$|t%ƒ�sžt&‚|St'k �rà}z tjt(|ƒƒtj)ddd�t*Sd}~X�n t+t,t-t.t/fk �r&}z tjt(|ƒƒtj)ddd�t"Sd}~XnÆt0k �r`}ztjd|ƒtj)ddd�t"Sd}~XnŒt1k �rœt2dt j3d�|t4j5k�r˜t6j7t j3d�t"St8k �rÈtjd ƒtj)ddd�t"St9k �rêtjd!dd�t:SXWd|j;|ƒXdS)$N)Ú verbosityÚno_colorÚ user_log_fileéézÁ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-supportÚCPythonzPython 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)Ú replacementÚgone_inééz¼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.Ú1Ú PIP_NO_INPUTú ÚPIP_EXISTS_ACTIONz2Could not find an activated virtualenv (required).zè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.Ú build_dirzBThe -b/--build/--build-dir/--build-directory option is deprecated.zOuse the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-cleanz20.3i� )ÚreasonrTrUÚissueÚresolverzs--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_contextrrrHÚverboseÚquietrNrrOÚlogÚsysÚ version_infoÚno_python_version_warningÚplatformÚpython_implementationrÚno_inputÚosÚenvironÚ exists_actionÚjoinÚ require_venvÚignore_require_venvrÚloggerÚcriticalÚexitr Ú cache_dirrrÚwarningÚgetattrÚunstable_featuresrrGÚ isinstanceÚintrBrÚstrÚdebugr rrr rrr rÚprintÚstderrrKÚDEBUGÚ tracebackÚ print_excÚKeyboardInterruptÚ BaseExceptionr rD)r9rFrCÚ level_numberÚmessageÚstatusÚexcr>r>r?rJ}s–              z Command._main)F) Ú__name__Ú __module__Ú __qualname__r$rqr,r8rDrGrHrMrJÚ __classcell__r>r>)r=r?r#:s  )=r.Ú __future__rrrKÚlogging.configr2rlrirfr€Zpip._internal.clirÚ!pip._internal.cli.command_contextrÚpip._internal.cli.parserrrÚpip._internal.cli.status_codesrr r r Úpip._internal.exceptionsr r rrrrrÚpip._internal.utils.deprecationrÚpip._internal.utils.filesystemrÚpip._internal.utils.loggingrrÚpip._internal.utils.miscrrÚpip._internal.utils.temp_dirrrÚpip._internal.utils.typingrÚpip._internal.utils.virtualenvrÚtypingrrrr r!r"ZTempDirRegistryÚ__all__Ú getLoggerrˆrrr#r>r>r>r?Ús6  $