S[`g ` d dl Z d dlZd dlmZmZmZmZmZ d dlm Z ddl mZ ddlm Z ddlmZ g dZ ej e Z G d d Zdee deeee f fd Zdee dee dee dee dee dee dedededee fdZdS ) N)IteratorListOptionalSequenceTuple) indent_log )parse_requirements)InstallRequirement)RequirementSet)r r r install_given_reqsc * e Zd ZdeddfdZdefdZdS )InstallationResultnamereturnNc || _ d S )Nr )selfr s /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/req/__init__.py__init__zInstallationResult.__init__ s c d| j dS )NzInstallationResult(name=)r )r s r __repr__zInstallationResult.__repr__ s 8$)8888r )__name__ __module____qualname__strr r r r r r sQ S T 9# 9 9 9 9 9 9r r requirementsr c # R K | D ]!}|j s J d| |j |fV "d S )Nz%invalid to-be-installed requirement: r )r reqs r _validate_requirementsr# sT xFFFFFFFxhm r install_optionsglobal_optionsroothomeprefixwarn_script_location use_user_site pycompilec ( t j t | } | r@t dd | g } t 5 | D ]\ }}|j rXt d| t 5 | d } ddd n# 1 swxY w Y nd} | |||||||| | r|j r| n,# t $ r | r|j s| w xY w| t# | ddd n# 1 swxY w Y | 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)r&