HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/lib/python3.9/site-packages/pip/_internal/distributions/__pycache__/sdist.cpython-39.pyc
a

?�f��@s�ddlZddlmZddlmZddlmZddlmZddl	m
Z
e
rpddlmZm
Z
ddlmZdd	lmZe�e�ZGd
d�de�ZdS)�N)�BuildEnvironment)�AbstractDistribution)�InstallationError)�runner_with_spinner_message)�MYPY_CHECK_RUNNING)�Set�Tuple)�Distribution)�
PackageFinderc@s(eZdZdZdd�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`.
    cCs
|j��S�N)�reqZget_dist)�self�r�E/usr/lib/python3.9/site-packages/pip/_internal/distributions/sdist.py�get_pkg_resources_distributionsz1SourceDistribution.get_pkg_resources_distributioncCs2|j��|jjo|}|r$|�|�|j��dSr)r
Zload_pyproject_tomlZ
use_pep517�_setup_isolationZprepare_metadata)r�finderZbuild_isolationZshould_isolaterrr�prepare_distribution_metadatas


z0SourceDistribution.prepare_distribution_metadatac	sB��fdd�}�jj}|dus"J�t��j_�jj�||dd��jj��jj�\�}�rd|d��|r�t�d�j�t�dd�	t
tt|�����jj�^t
d	�}�jj}|dus�J�|�|��|��}Wd�n1s�0YWd�n1s�0Y�jj�|�\�}��r*|d
���jj�||dd�dS)
Ncs6d}|j�j|d�dd�t��D��d�}t|��dS)NzZSome build dependencies for {requirement} conflict with {conflicting_with}: {description}.z, css|]\}}d�||�VqdS)z{} is incompatible with {}N)�format)�.0Z	installedZwantedrrr�	<genexpr>5s�zPSourceDistribution._setup_isolation.<locals>._raise_conflicts.<locals>.<genexpr>)Zrequirement�conflicting_with�description)rr
�join�sortedr)rZconflicting_reqs�
format_stringZ
error_message�Zconflictingrrr�_raise_conflicts,s�
��z=SourceDistribution._setup_isolation.<locals>._raise_conflictsZoverlayzInstalling 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 wheelzthe backend dependenciesZnormalzInstalling backend dependencies)r
�pyproject_requiresrZ	build_envZinstall_requirementsZcheck_requirementsZrequirements_to_check�loggerZwarningr�map�reprrrZpep517_backendZsubprocess_runnerZget_requires_for_build_wheel)rrrrZmissingZrunnerZbackendZreqsrrrr*sN
�����
�D
�z#SourceDistribution._setup_isolationN)�__name__�
__module__�__qualname__�__doc__rrrrrrrrsr)ZloggingZpip._internal.build_envrZ pip._internal.distributions.baserZpip._internal.exceptionsrZpip._internal.utils.subprocessrZpip._internal.utils.typingr�typingrrZpip._vendor.pkg_resourcesr	Z"pip._internal.index.package_finderr
Z	getLoggerr#r rrrrr�<module>s