3 ”Re= ã@s²ddlmZddlZddlZddlmZddlmZddlm Z ddl m Z ddl m Z erxdd lmZmZmZmZmZd d d d gZejeƒZGdd„deƒZdd„Zdd „ZdS)é)Úabsolute_importN)Ú indent_log)ÚMYPY_CHECK_RUNNINGé)Úparse_requirements)ÚInstallRequirement)ÚRequirementSet)ÚIteratorÚListÚOptionalÚSequenceÚTuplerrrÚinstall_given_reqsc@seZdZdd„Zdd„ZdS)ÚInstallationResultcCs ||_dS)N)Úname)Úselfr©rú‰/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/req/__init__.pyÚ__init__szInstallationResult.__init__cCs dj|jƒS)NzInstallationResult(name={!r}))Úformatr)rrrrÚ__repr__szInstallationResult.__repr__N)Ú__name__Ú __module__Ú __qualname__rrrrrrrsrccs2x,|D]$}|jstdj|ƒƒ‚|j|fVqWdS)Nz'invalid to-be-installed requirement: {})rÚAssertionErrorr)Ú requirementsÚreqrrrÚ_validate_requirements"s rc Csøtjt|ƒƒ} | r(tjddj| jƒƒƒg} tƒ�¼x´| jƒD]¨\} } | j rxtjd| ƒtƒ�| j dd�} WdQRXnd} y| j ||||||||d�Wn*t k rÄ| r¾| j r¾| jƒ‚YnX| rØ| j rØ| jƒ| jt| ƒƒq>WWdQRX| S)zu Install everything in the given list. (to be called after having downloaded and unpacked the packages) z!Installing collected packages: %sz, zAttempting uninstall: %sT)Ú auto_confirmN)ÚrootÚhomeÚprefixÚwarn_script_locationÚ use_user_siteÚ pycompile)Ú collectionsÚ OrderedDictrÚloggerÚinfoÚjoinÚkeysrÚitemsÚshould_reinstallÚ uninstallÚinstallÚ ExceptionÚinstall_succeededÚrollbackÚcommitÚappendr)rÚinstall_optionsÚglobal_optionsrr r!r"r#r$Ú to_installÚ installedÚreq_nameÚ requirementÚuninstalled_pathsetrrrr+s@    )Ú __future__rr%ÚloggingÚpip._internal.utils.loggingrÚpip._internal.utils.typingrÚreq_filerÚ req_installrÚreq_setrÚtypingr r r r r Ú__all__Ú getLoggerrr'ÚobjectrrrrrrrÚs