Edit File: sdist.cpython-311.pyc
� Q�d^ � � � d dl Z d dlmZmZmZ d dlmZ d dlmZ d dl m Z d dlmZ d dl mZ d dlmZ e j e� � Z G d � d e� � ZdS )� N)�Iterable�Set�Tuple)�BuildEnvironment)�AbstractDistribution)�InstallationError)� PackageFinder)�BaseDistribution)�runner_with_spinner_messagec �� � e Zd ZdZdefd�Zdedededdfd�Zdeddfd �Z de e fd �Zde e fd�Z deddfd�Zd edeeeef ddfd�Zdee ddfd�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 �4 � | j � � � S )N)�req�get_dist)�selfs �r/builddir/build/BUILD/cloudlinux-venv-1.0.2/venv/lib/python3.11/site-packages/pip/_internal/distributions/sdist.py�get_metadata_distributionz,SourceDistribution.get_metadata_distribution s � ��x� � �"�"�"� �finder�build_isolation�check_build_depsNc �� � | j � � � | j j o|}|rC| � |� � | j � � � | � |� � | j j o|}|ra| j j }|�J �| j j � |� � \ }}|r| � d|� � |r| � |� � | j � � � d S )N�the backend dependencies)r �load_pyproject_toml� use_pep517�_prepare_build_backend�isolated_editable_sanity_check�_install_build_reqs�pyproject_requires� build_env�check_requirements�_raise_conflicts�_raise_missing_reqs�prepare_metadata) r r r r �should_isolate�should_check_depsr �conflicting�missings r �prepare_distribution_metadataz0SourceDistribution.prepare_distribution_metadata s � � ��$�$�&�&�&� ��,�@���� -� �'�'��/�/�/� �H�3�3�5�5�5��$�$�V�,�,�,� �H�/�D�4D��� 2�!%��!<��%�1�1�1�#'�8�#5�#H�#H�"�$� $� �K�� � O��%�%�&@�+�N�N�N�� 2��(�(��1�1�1���!�!�#�#�#�#�#r c � � | j j }|�J �t � � | j _ | j j � ||dd�� � | j j � | j j � � \ }}|r| � d|� � |rpt � d| j � � t � dd� t t t |� � � � � � � � d S d S )N�overlayzbuild dependencies��kindz"PEP 517/518 supported requirementsz4Missing build requirements in pyproject.toml for %s.z`The project does not specify a build backend, and pip cannot fall back to setuptools without %s.z and )r r r r! �install_requirementsr"