관리-도구
편집 파일: __init__.cpython-310.pyc
o ƚRe� � @ s� d dl Z d dlZd dlmZmZmZmZmZ d dlm Z ddl mZ ddlm Z ddlmZ g d�Ze�e�ZG d d � d �Zdee deeee f fd d�Zdee dee dee dee dee dee dedededee fdd�ZdS )� N)�Iterator�List�Optional�Sequence�Tuple)� indent_log� )�parse_requirements)�InstallRequirement)�RequirementSet)r r r �install_given_reqsc @ s, e Zd Zdeddfdd�Zdefdd�ZdS )�InstallationResult�name�returnNc C s || _ d S )N�r )�selfr � r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/req/__init__.py�__init__ s zInstallationResult.__init__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 s0 � | D ]}|j sJ d|� ���|j |fV qd S )Nz%invalid to-be-installed requirement: r )r �reqr r r �_validate_requirements s ��r �install_options�global_options�root�home�prefix�warn_script_location� use_user_site� pycompilec C s t �t| ��} | rt�dd�| �� �� g } t� �h | �� D ]Z\}}|j rEt�d|� t� � |j dd�} W d � n1 s?w Y nd} z|j||||||||d� W n tyg | rf|j sf| �� � w | rq|j rq| �� | �t|�� qW d � | S 1 s�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 r! r"