£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
U
    .ee                     @   sV   d dl Z d dlmZ d dl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_messagec                   @   s(   e Zd ZdZdd Zdd Zdd ZdS )	SourceDistributiona  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`.

    NOTE from @pradyunsg (14 June 2019)
    I expect SourceDistribution class will need to be split into
    `legacy_source` (setup.py based) and `source` (PEP 517 based) when we start
    bringing logic for preparation out of InstallRequirement into this class.
    c                 C   s
   | j  S N)reqZget_dist)self r
   M/usr/lib/python3.8/site-packages/pip/_internal/distributions/source/legacy.pyget_pkg_resources_distribution   s    z1SourceDistribution.get_pkg_resources_distributionc                 C   s<   | j   | j jo|}|r$| | | j   | j   d S r   )r   Zload_pyproject_tomlZ
use_pep517_setup_isolationZprepare_metadataZassert_source_matches_version)r	   finderZbuild_isolationZshould_isolater
   r
   r   prepare_distribution_metadata   s    


z0SourceDistribution.prepare_distribution_metadatac              
      s    fdd}t  j_jj|jjdd jjjj\ } rT|d  |rtdj tdd	t
tt| jj4 td	}jj}|| | }W 5 Q R X W 5 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 ||f V  qdS )z%s is incompatible with %sNr
   ).0Z	installedZwantedr
   r
   r   	<genexpr>3   s   zPSourceDistribution._setup_isolation.<locals>._raise_conflicts.<locals>.<genexpr>)Zrequirementconflicting_withdescription)formatr   joinsortedr   )r   Zconflicting_reqsformat_stringZerror_messageZconflictingr	   r
   r   _raise_conflicts+   s    
z=SourceDistribution._setup_isolation.<locals>._raise_conflictsZ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 dependenciesZnormalzInstalling backend dependencies)r   r   Z	build_envZinstall_requirementsZpyproject_requiresZcheck_requirementsZrequirements_to_checkloggerZwarningr   mapreprr   r   Zpep517_backendZsubprocess_runnerZget_requires_for_build_wheel)r	   r   r   ZmissingZrunnerZbackendZreqsr
   r   r   r   *   sP    
  

  z#SourceDistribution._setup_isolationN)__name__
__module____qualname____doc__r   r   r   r
   r
   r
   r   r      s   r   )ZloggingZpip._internal.build_envr   Z pip._internal.distributions.baser   Zpip._internal.exceptionsr   Zpip._internal.utils.subprocessr   Z	getLoggerr   r   r   r
   r
   r
   r   <module>   s   
