3
Re @ s d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m
Z
e
rpd dlmZm
Z
d dlmZ d d lmZ e jeZG d
d deZdS ) N)BuildEnvironment)AbstractDistribution)InstallationError)runner_with_spinner_message)MYPY_CHECK_RUNNING)SetTuple)Distribution)
PackageFinderc @ s( e Zd ZdZdd Zdd Zdd ZdS ) 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-python36-pip-20.2.4-5.el9.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/distributions/sdist.pyget_pkg_resources_distribution s z1SourceDistribution.get_pkg_resources_distributionc C s2 | j j | j jo|}|r$| 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 fdd}j j}|d k s"tt j _j jj||dd j jjj j\ } rd|d |rtj dj tj ddj
ttt
| j j@ td }j j}|d k st|j| |j }W d Q R X W d Q R X j jj|\ } r|d
j jj||dd d S )
Nc s6 d}|j j| djdd t D d}t|d S )NzZSome build dependencies for {requirement} conflict with {conflicting_with}: {description}.z, c s s | ]\}}d j ||V qdS )z{} is incompatible with {}N)format).0 installedwantedr r r