관리-도구
편집 파일: __init__.cpython-38.pyc
U ʗRe� � @ s� d dl Z d dlZd dlmZmZmZmZmZ d dlm Z ddl mZ ddlm Z ddlmZ dd d dgZe�e�ZG dd � d �Zee eeee f ddf d�dd�Zee ee ee ee ee ee eeeee d� dd�ZdS )� N)� Generator�List�Optional�Sequence�Tuple)� indent_log� )�parse_requirements)�InstallRequirement)�RequirementSetr 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-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/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 std|� ���|j |fV qd S )Nz%invalid to-be-installed requirement: )r �AssertionError)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 rvt�d|� t� � |j dd�} W 5 Q R X nd} z|j||||||||d� W n( tk r� | r�|j s�| �� � Y nX | r�|j r�| �� | �t|�� q<W 5 Q R X | 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"