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 jeƒZG d
d„ deƒZdS )é N)ÚBuildEnvironment)ÚAbstractDistribution)ÚInstallationError)Úrunner_with_spinner_message)ÚMYPY_CHECK_RUNNING)ÚSetÚTuple)ÚDistribution)Ú
PackageFinderc @ s( e Zd ZdZdd„ Zdd„ Zdd„ 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`.
c C s
| j jƒ S )N)ÚreqÚget_dist)Úself© r ú�/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/distributions/sdist.pyÚget_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_isolationÚprepare_metadata)r ÚfinderÚbuild_isolationÚshould_isolater r r Úprepare_distribution_metadata s
z0SourceDistribution.prepare_distribution_metadatac s ‡ ‡fdd„}ˆj j}|d k s"t‚tƒ ˆj _ˆj jj||ddƒ ˆj jjˆj jƒ\‰ }ˆ rd|dˆ ƒ |r’tj dˆj ƒ tj ddj
ttt
|ƒƒƒƒ ˆj j�@ td ƒ}ˆj j}|d k s¸t‚|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Ú installedÚwantedr r r ú