3 Re= @sddlmZddlZddlZddlmZddlmZddlm Z ddl m Z ddl m Z erxdd lmZmZmZmZmZd d d d gZejeZGdddeZddZdd ZdS))absolute_importN) indent_log)MYPY_CHECK_RUNNING)parse_requirements)InstallRequirement)RequirementSet)IteratorListOptionalSequenceTuplerrrinstall_given_reqsc@seZdZddZddZdS)InstallationResultcCs ||_dS)N)name)selfrr/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el9.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/req/__init__.py__init__szInstallationResult.__init__cCs dj|jS)NzInstallationResult(name={!r}))formatr)rrrr__repr__szInstallationResult.__repr__N)__name__ __module__ __qualname__rrrrrrrsrccs2x,|D]$}|jstdj||j|fVqWdS)Nz'invalid to-be-installed requirement: {})rAssertionErrorr) requirementsreqrrr_validate_requirements"s rc Cstjt|} | r(tjddj| jg} tx| jD]\} } | j rxtjd| t| j dd} WdQRXnd} y| j ||||||||dWn*t k r| r| j r| jYnX| 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)roothomeprefixwarn_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