HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pip/_internal/distributions/__pycache__/sdist.cpython-312.pyc
�

��h5���ddlZddlmZmZmZmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZej$e�ZGd	�d
e	�Zy)�N)�Iterable�Optional�Set�Tuple)�BuildEnvironment)�AbstractDistribution)�InstallationError)�
PackageFinder)�BaseDistribution)�runner_with_spinner_messagec���eZdZdZedeefd��Zdefd�Z	de
dededdfd	�Zde
ddfd
�Z
deefd�Zdeefd�Zde
ddfd
�Zdedeeeefddfd�Zdeeddfd�Zy)�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`.
    �returnc�r�|jjsJ�|jjjS)z/Identify this requirement uniquely by its link.)�req�link�url_without_fragment��selfs �C/usr/lib/python3/dist-packages/pip/_internal/distributions/sdist.py�build_tracker_idz#SourceDistribution.build_tracker_ids(���x�x�}�}��}��x�x�}�}�1�1�1�c�6�|jj�S)N)r�get_distrs r�get_metadata_distributionz,SourceDistribution.get_metadata_distributions���x�x� � �"�"r�finder�build_isolation�check_build_depsNc�&�|jj�|jjxr|}|r<|j|�|jj	�|j|�|jjxr|}|ri|jj}|�J�|jjj|�\}}|r|jd|�|r|j|�|jj�y)N�the backend dependencies)r�load_pyproject_toml�
use_pep517�_prepare_build_backend�isolated_editable_sanity_check�_install_build_reqs�pyproject_requires�	build_env�check_requirements�_raise_conflicts�_raise_missing_reqs�prepare_metadata)	rrrr�should_isolate�should_check_depsr&�conflicting�missings	         r�prepare_distribution_metadataz0SourceDistribution.prepare_distribution_metadatas���	
���$�$�&����,�,�@����
�'�'��/�
�H�H�3�3�5��$�$�V�,� �H�H�/�/�D�4D���!%���!<�!<��%�1�1�1�#'�8�8�#5�#5�#H�#H�"�$� �K����%�%�&@�+�N���(�(��1����!�!�#rc��|jj}|�J�t�|j_|jjj	||dd��|jjj|jj�\}}|r|jd|�|r]tjd|j�tjddjttt|����yy)N�overlayzbuild dependencies��kindz"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 )rr&rr'�install_requirementsr(�requirements_to_checkr)�logger�warning�join�map�repr�sorted)rrr&r.r/s     rr#z)SourceDistribution._prepare_build_backendEs���"�X�X�8�8��!�-�-�-�-�/����������/�/��&�	�8L�	0�	
� $�x�x�1�1�D�D��H�H�*�*� 
���W���!�!�"F��T���N�N�F����
�
�N�N�A����S��v�g��7�8�
�rc�&�|jj5td�}|jj}|�J�|j	|�5|j�cddd�cddd�S#1swYnxYw	ddd�y#1swYyxYw)Nz#Getting requirements to build wheel)rr'r�pep517_backend�subprocess_runner�get_requires_for_build_wheel�r�runner�backends   r�_get_build_requires_wheelz,SourceDistribution._get_build_requires_wheel_s���
�X�X�
�
�	>�0�1V�W�F��h�h�-�-�G��&�&�&��*�*�6�2�
>��;�;�=�
>�
>�		>�	>�
>�
>��
>�		>�	>�	>��#�7B�A1�	B�1A:	�6B�Bc�&�|jj5td�}|jj}|�J�|j	|�5|j�cddd�cddd�S#1swYnxYw	ddd�y#1swYyxYw)Nz&Getting requirements to build editable)rr'rr>r?�get_requires_for_build_editablerAs   r�_get_build_requires_editablez/SourceDistribution._get_build_requires_editablegs���
�X�X�
�
�	A�0�8��F��h�h�-�-�G��&�&�&��*�*�6�2�
A��>�>�@�
A�
A�
	A�	A�
A�
A��
A�
	A�	A�	A�rEc��|jjrA|jjr+|jj�r|j	�}n|j�}|jjj|�\}}|r|jd|�|jjj||dd��y)Nr �normalzbackend dependenciesr3)
r�editable�permit_editable_wheels�supports_pyproject_editablerHrDr'r(r)r5)rr�
build_reqsr.r/s     rr%z&SourceDistribution._install_build_reqsqs���

�H�H������/�/����4�4�6��:�:�<�J��7�7�9�J�#�x�x�1�1�D�D�Z�P���W���!�!�"<�k�J������/�/��G�X�,B�	0�	
r�conflicting_with�conflicting_reqsc
��d}|j|j|djd�t|�D����}t	|��)NzZSome build dependencies for {requirement} conflict with {conflicting_with}: {description}.�, c3�0K�|]\}}|�d|�����y�w)z is incompatible with N�)�.0�	installed�wanteds   r�	<genexpr>z6SourceDistribution._raise_conflicts.<locals>.<genexpr>�s(����"�%�I�v��+�3�F�8�<�"�s�)�requirementrO�description)�formatrr9r<r	)rrOrP�
format_string�
error_messages     rr)z#SourceDistribution._raise_conflicts�sY��
?�	�&�,�,����-��	�	�"�)/�0@�)A�"��-�
�
� �
�.�.rr/c��d}|j|jdjttt|�����}t
|��)NzASome build dependencies for {requirement} are missing: {missing}.rR)rYr/)r[rr9r:r;r<r	)rr/r\r]s    rr*z&SourceDistribution._raise_missing_reqs�sK��O�	�&�,�,����$�)�)�C��f�W�o�4N�*O�-�
�
� �
�.�.r)�__name__�
__module__�__qualname__�__doc__�propertyr�strrrrr
�boolr0r#rrDrHr%rrr)r*rTrrrrs�����2�(�3�-�2��2�
#�+;�#�%$��%$��%$��	%$�

�%$�N�]��t��4>�8�C�=�>�A�h�s�m�A�
�-�
�D�
�&/� #�/�7:�5��c��?�7K�/�	
�/�"/�3�s�8�/��/rr)�logging�typingrrrr�pip._internal.build_envr� pip._internal.distributions.baser�pip._internal.exceptionsr	�"pip._internal.index.package_finderr
�pip._internal.metadatar�pip._internal.utils.subprocessr�	getLoggerr_r7rrTrr�<module>rosA���1�1�4�A�6�<�3�F�	��	�	�8�	$��N/�-�N/r