§
    u”jË  ã                  óž   — d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dl	m
Z
mZmZ d dlmZ d dlmZ dd„Zdd„Z edg d¢¦  «        Zdd„ZdS )é    )ÚannotationsN)Ú
namedtuple)ÚAny)ÚInvalidRequirement)ÚInstallationErrorÚInvalidPyProjectBuildRequiresÚMissingPyProjectBuildRequires)Útomllib)Úget_requirementÚobjr   ÚreturnÚboolc                ó^   — t          | t          ¦  «        ot          d„ | D ¦   «         ¦  «        S )Nc              3  ó@   K  — | ]}t          |t          ¦  «        V — Œd S )N)Ú
isinstanceÚstr)Ú.0Úitems     úf/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/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_strr      s.   € Ý�c�4Ñ Ô ÐO¥SÐ(OÐ(OÈ3Ð(OÑ(OÔ(OÑ%OÔ%OÐOr   Úunpacked_source_directoryr   c                óB   — t           j                             | d¦  «        S )Nzpyproject.toml)ÚosÚpathÚjoin)r   s    r   Úmake_pyproject_pathr       s   € ÝŒ7�<Š<Ð1Ð3CÑDÔDÐDr   ÚBuildSystemDetails)ÚrequiresÚbackendÚcheckÚbackend_pathÚpyproject_tomlÚsetup_pyÚreq_namec                ó  — t           j                             | ¦  «        }t           j                             |¦  «        }|s|st          |› d�¦  «        ‚|ret	          | d¬¦  «        5 }t          j        |                     ¦   «         ¦  «        }ddd¦  «         n# 1 swxY w Y   |                     d¦  «        }nd}|€dgddœ}d	|vrt          |¬
¦  «        ‚|d	         }t          |¦  «        st          |d¬¦  «        ‚|D ]9}		 t          |	¦  «         Œ# t          $ r}
t          |d|	›�¬¦  «        |
‚d}
~
ww xY w|                     d¦  «        }|                     dg ¦  «        }g }|€d}dg}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.zutf-8)ÚencodingNzbuild-systemzsetuptools>=40.8.0z setuptools.build_meta:__legacy__)r"   úbuild-backendr"   )ÚpackagezIt is not a list of strings.)r,   Úreasonz$It contains an invalid requirement: r+   zbackend-path)r   r   Úisfiler   Úopenr
   ÚloadsÚreadÚgetr	   r   r   r   r   r!   )r&   r'   r(   Úhas_pyprojectÚ	has_setupÚfÚpp_tomlÚbuild_systemr"   ÚrequirementÚerrorr#   r%   r$   s                 r   Úload_pyproject_tomlr:      s6  € õ, ”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Ä6D;)r   r   r   r   )r   r   r   r   )r&   r   r'   r   r(   r   r   r!   )Ú
__future__r   r   Úcollectionsr   Útypingr   Ú"pip._vendor.packaging.requirementsr   Úpip._internal.exceptionsr   r   r	   Úpip._internal.utils.compatr
   Úpip._internal.utils.packagingr   r   r    r!   r:   © r   r   ú<module>rC      s(  ðØ "Ð "Ð "Ð "Ð "Ð "à 	€	€	€	Ø "Ð "Ð "Ð "Ð "Ð "Ø Ð Ð Ð Ð Ð à 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ð \Fr   