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
r d d l m Z m
Z
d d l m Z d d l m Z e j e Z Gd
d d e Z d S) N)BuildEnvironment)AbstractDistribution)InstallationError)runner_with_spinner_message)MYPY_CHECK_RUNNING)SetTuple)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 j S)N)reqget_dist)self r /builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/distributions/sdist.pyget_pkg_resources_distribution s z1SourceDistribution.get_pkg_resources_distributionc C sC | j j | j j o | } | r2 | j | | j j d S)N)r load_pyproject_toml
use_pep517_setup_isolationprepare_metadata)r finderbuild_isolationshould_isolater r r prepare_distribution_metadata s
z0SourceDistribution.prepare_distribution_metadatac s f d d } j j } | d k s3 t t j _ j j j | | d d j j j j j \ } r | d | r t j d j t j d d j
t t t
| j j R t d } j j } | d k s
t | j | | j } Wd QRXWd QRX j j j | \ } rb| d
j j j | | d d d S)
Nc
sS d } | j d j d | d d j d d t D } t | d S)NzZSome build dependencies for {requirement} conflict with {conflicting_with}: {description}.requirementconflicting_withdescriptionz, c s s' | ] \ } } d j | | Vq d S)z{} is incompatible with {}N)format).0 installedwantedr r r