관리-도구
편집 파일: __init__.cpython-39.pyc
a ��Re� � @ s� d dl Z d dlZd dlmZmZmZmZmZ d dlm Z ddl mZ ddlm Z ddlmZ g d�Ze�e�ZG d d � d �Zee eeee f d�dd �Zee ee ee ee ee ee eeeee d� dd�ZdS )� N)�Iterator�List�Optional�Sequence�Tuple)� indent_log� )�parse_requirements)�InstallRequirement)�RequirementSet)r r r �install_given_reqsc @ s* e Zd Zedd�dd�Zed�dd�ZdS )�InstallationResultN)�name�returnc C s || _ d S )N�r )�selfr � r ��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/req/__init__.py�__init__ s zInstallationResult.__init__)r c C s d| j �d�S )NzInstallationResult(name=�)r )r r r r �__repr__ s zInstallationResult.__repr__)�__name__� __module__�__qualname__�strr r r r r r r s r )�requirementsr c c s. | D ]$}|j sJ d|� ���|j |fV qd S )Nz%invalid to-be-installed requirement: r )r �reqr r r �_validate_requirements s r ) r �install_options�global_options�root�home�prefix�warn_script_location� use_user_site� pycompiler c C s t �t| ��} | r(t�dd�| �� �� g } t� �� | �� D ]�\}}|j r�t�d|� t� � |j dd�} W d � q�1 s~0 Y nd} z|j||||||||d� W n& ty� | r�|j s�| �� � Y n0 | r�|j r�| �� | �t|�� q<W d � n1 �s0 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 r! r"