Re= @sddlmZddlZddlZddlmZddlmZddlm Z ddl m Z ddl m Z erdd lmZmZmZmZmZd d d d gZejeZGdddeZddZdd ZdS))absolute_importN) indent_log)MYPY_CHECK_RUNNING)parse_requirements)InstallRequirement)RequirementSet)IteratorListOptionalSequenceTuplerrrinstall_given_reqsc@s(eZdZddZddZdS)InstallationResultcCs ||_dS)N)name)selfrr/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/req/__init__.py__init__szInstallationResult.__init__cCsdj|jS)NzInstallationResult(name={!r}))formatr)rrrr__repr__szInstallationResult.__repr__N)__name__ __module__ __qualname__rrrrrrrs  rccsAx:|D]2}|js+tdj||j|fVqWdS)Nz'invalid to-be-installed requirement: {})rAssertionErrorr) requirementsreqrrr_validate_requirements"s rc $CsMtjt|} | r:tjddj| jg} tx| jD]\} } | j rtjd| t| j dd} WdQRXnd} y8| j ||d|d|d |d |d |d |Wn/t k r| r | j r | jYnX| r+| j r+| j| jt| qWWWdQRX| 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: %s auto_confirmTNroothomeprefixwarn_script_location use_user_site pycompile) collections OrderedDictrloggerinfojoinkeysritemsshould_reinstall uninstallinstall Exceptioninstall_succeededrollbackcommitappendr)rinstall_optionsglobal_optionsrr r!r"r#r$ to_install installedreq_name requirementuninstalled_pathsetrrrr+s@        ) __future__rr%loggingpip._internal.utils.loggingrpip._internal.utils.typingrreq_filer req_installrreq_setrtypingr r r r r __all__ getLoggerrr'objectrrrrrrrs  (