Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/pip/_internal/distributions/__pycache__/sdist.cpython-37.pyc
Назад
B �5�g5 � @ s� d dl Z d dlmZmZmZmZ d dlmZ d dlm Z d dl mZ d dlm Z d dlmZ d dlmZ e �e�ZG d d � d e �ZdS )� N)�Iterable�Optional�Set�Tuple)�BuildEnvironment)�AbstractDistribution)�InstallationError)� PackageFinder)�BaseDistribution)�runner_with_spinner_messagec @ s� e Zd ZdZeee d�dd��Zed�dd�Z e eedd�d d �Ze dd�dd �Z ee d�dd�Zee d�dd�Ze dd�dd�Zeeeeef dd�dd�Zee dd�dd�ZdS )�SourceDistributionz�Represents a source distribution. The preparation step for these needs metadata for the packages to be generated, either using PEP 517 or using the legacy `setup.py egg_info`. )�returnc C s | j jst�| j jjS )z/Identify this requirement uniquely by its link.)�req�link�AssertionError�url_without_fragment)�self� r �B/tmp/pip-install-251nq386/pip/pip/_internal/distributions/sdist.py�build_tracker_id s z#SourceDistribution.build_tracker_idc C s | j �� S )N)r �get_dist)r r r r �get_metadata_distribution s z,SourceDistribution.get_metadata_distributionN)�finder�build_isolation�check_build_depsr c C s� | j �� | j jo|}|r8| �|� | j �� | �|� | j joB|}|r�| j j}|d k s\t�| j j� |�\}}|r~| � d|� |r�| �|� | j �� d S )Nzthe backend dependencies) r �load_pyproject_toml� use_pep517�_prepare_build_backendZisolated_editable_sanity_check�_install_build_reqs�pyproject_requiresr � build_env�check_requirements�_raise_conflicts�_raise_missing_reqsZprepare_metadata) r r r r �should_isolateZshould_check_depsr �conflicting�missingr r r �prepare_distribution_metadata s"