HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/pip/_internal/__pycache__/pyproject.cpython-311.pyc
�

�mi����ddlmZddlZddlmZddlmZddlmZddl	m
Z
mZmZddl
mZddlmZdd
�Zdd�Zedgd���Zdd�ZdS)�)�annotationsN)�
namedtuple)�Any)�InvalidRequirement)�InstallationError�InvalidPyProjectBuildRequires�MissingPyProjectBuildRequires)�tomllib)�get_requirement�objr�return�boolc�^�t|t��otd�|D����S)Nc3�@K�|]}t|t��V��dS)N)�
isinstance�str)�.0�items  �9D:\Python311\Lib\site-packages\pip/_internal/pyproject.py�	<genexpr>z"_is_list_of_str.<locals>.<genexpr>s,����(O�(O�4��D�#�)>�)>�(O�(O�(O�(O�(O�(O�)r�list�all)rs r�_is_list_of_strrs.���c�4� � �O�S�(O�(O�3�(O�(O�(O�%O�%O�Or�unpacked_source_directoryrc�B�tj�|d��S)Nzpyproject.toml)�os�path�join)rs r�make_pyproject_pathr s��
�7�<�<�1�3C�D�D�Dr�BuildSystemDetails)�requires�backend�check�backend_path�pyproject_toml�setup_py�req_namec��tj�|��}tj�|��}|s|st|�d����|ret	|d���5}tj|�����}ddd��n#1swxYwY|�d��}nd}|�dgdd�}d	|vrt|�
���|d	}t|��st|d����|D]9}		t|	���#t$r}
t|d
|	�����|
�d}
~
wwxYw|�d��}|�dg��}g}
|�d}dg}
t|||
|��S)a�Load the pyproject.toml file.

    Parameters:
        pyproject_toml - Location of the project's pyproject.toml file
        setup_py - Location of the project's setup.py file
        req_name - The name of the requirement we're processing (for
                   error reporting)

    Returns:
        None if we should use the legacy code path, otherwise a tuple
        (
            requirements from pyproject.toml,
            name of PEP 517 backend,
            requirements we should check are installed after setting
                up the build environment
            directory paths to import the backend from (backend-path),
                relative to the project root.
        )
    zW does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.zutf-8)�encodingNzbuild-systemzsetuptools>=40.8.0z setuptools.build_meta:__legacy__)r"�
build-backendr")�packagezIt is not a list of strings.)r,�reasonz$It contains an invalid requirement: r+zbackend-path)rr�isfiler�openr
�loads�read�getr	rrrrr!)r&r'r(�
has_pyproject�	has_setup�f�pp_toml�build_systemr"�requirement�errorr#r%r$s              r�load_pyproject_tomlr:s=��,�G�N�N�>�2�2�M�����x�(�(�I��
��
���
>�
>�
>�
�
�	
�
��
�.�7�
3�
3�
3�	.�q��m�A�F�F�H�H�-�-�G�	.�	.�	.�	.�	.�	.�	.�	.�	.�	.�	.����	.�	.�	.�	.��{�{�>�2�2������	
�.�.�?�
�
����%�>�+�H�=�=�=�=��J�'�H��8�$�$�
�+��1�
�
�
�	
� ����	��K�(�(�(�(��!�	�	�	�/� �M�k�M�M�����
�����	��������/�/�G��#�#�N�B�7�7�L��E��
'�5��%�&���h����E�E�Es*�('B�B�"B�D�
D;�!D6�6D;)rrr
r)rrr
r)r&rr'rr(rr
r!)�
__future__rr�collectionsr�typingr�"pip._vendor.packaging.requirementsr�pip._internal.exceptionsrrr	�pip._internal.utils.compatr
�pip._internal.utils.packagingrrr r!r:�rr�<module>rCs(��"�"�"�"�"�"�	�	�	�	�"�"�"�"�"�"�������A�A�A�A�A�A�����������
/�.�.�.�.�.�9�9�9�9�9�9�P�P�P�P�E�E�E�E� �Z��J�J�J����
\F�\F�\F�\F�\F�\Fr