<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
B
    Re                 @   s   d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 e
rpd dlmZmZ d dlmZ d d	lmZ e eZG d
d deZdS )    N)BuildEnvironment)AbstractDistribution)InstallationError)runner_with_spinner_message)MYPY_CHECK_RUNNING)SetTuple)Distribution)PackageFinderc               @   s(   e Zd ZdZdd Zdd Zdd ZdS )	SourceDistributionzRepresents 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`.
    c             C   s
   | j  S )N)reqget_dist)self r   /builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/distributions/sdist.pyget_pkg_resources_distribution   s    z1SourceDistribution.get_pkg_resources_distributionc             C   s2   | j   | j jo|}|r$| | | j   d S )N)r   load_pyproject_toml
use_pep517_setup_isolationprepare_metadata)r   finderbuild_isolationshould_isolater   r   r   prepare_distribution_metadata   s
    

z0SourceDistribution.prepare_distribution_metadatac          
      s   fdd}j j}|d k	s"tt j _j j||dd j jj j\ } rd|d  |rt	dj  t	dd
ttt| j j@ td	}j j}|d k	st|| | }W d Q R X W d Q R X j j|\ } r|d
  j j||dd d S )Nc                s6   d}|j j| ddd t D d}t|d S )NzZSome build dependencies for {requirement} conflict with {conflicting_with}: {description}.z, c             s   s   | ]\}}d  ||V  qdS )z{} is incompatible with {}N)format).0	installedwantedr   r   r   	<genexpr>6   s   zPSourceDistribution._setup_isolation.<locals>._raise_conflicts.<locals>.<genexpr>)requirementconflicting_withdescription)r   r   joinsortedr   )r    conflicting_reqsformat_stringerror_message)conflictingr   r   r   _raise_conflicts,   s    z=SourceDistribution._setup_isolation.<locals>._raise_conflictsoverlayzInstalling build dependenciesz"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 z#Getting requirements to build wheelzthe backend dependenciesnormalzInstalling backend dependencies)r   pyproject_requiresAssertionErrorr   	build_envinstall_requirementscheck_requirementsrequirements_to_checkloggerwarningr"   mapreprr#   r   pep517_backendsubprocess_runnerget_requires_for_build_wheel)r   r   r(   r+   missingrunnerbackendreqsr   )r'   r   r   r   *   s@    


z#SourceDistribution._setup_isolationN)__name__
__module____qualname____doc__r   r   r   r   r   r   r   r      s   r   )loggingpip._internal.build_envr    pip._internal.distributions.baser   pip._internal.exceptionsr   pip._internal.utils.subprocessr   pip._internal.utils.typingr   typingr   r   Zpip._vendor.pkg_resourcesr	   "pip._internal.index.package_finderr
   	getLoggerr<   r1   r   r   r   r   r   <module>   s   
