B Re= @sddlmZddlZddlZddlmZddlmZddlm Z ddl m Z ddl m Z erxdd lmZmZmZmZmZd d d d gZeeZGdddeZddZdd 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-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/req/__init__.py__init__szInstallationResult.__init__cCs d|jS)NzInstallationResult(name={!r}))formatr)rrrr__repr__szInstallationResult.__repr__N)__name__ __module__ __qualname__rrrrrrrsrccs2x,|D]$}|jstd||j|fVqWdS)Nz'invalid to-be-installed requirement: {})rAssertionErrorr) requirementsreqrrr_validate_requirements"s rc  Cstt|} | r(tdd| g} tx| D]\} } | j rxtd| t| j dd} WdQRXnd} y| j ||||||||dWn(t k r| r| j s| YnX| r| j r| | t| 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