PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/alt/python39/lib/python3.9/site-packages/pip/_internal/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib/python3.9/site-packages/pip/_internal/__pycache__/pyproject.cpython-39.pyc

a

��Re/�@s�ddlZddlmZddlmZmZmZddlmZddl	m
Z
mZddlm
Z
eed�dd	�Zeed
�dd�Zed
gd��Zeeeeeeed�dd�ZdS)�N)�
namedtuple)�Any�List�Optional)�tomli)�InvalidRequirement�Requirement)�InstallationError)�obj�returncCst|t�otdd�|D��S)Ncss|]}t|t�VqdS)N)�
isinstance�str)�.0�item�r��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/pyproject.py�	<genexpr>�z"_is_list_of_str.<locals>.<genexpr>)r�list�all)r
rrr�_is_list_of_strsr)�unpacked_source_directoryrcCstj�|d�S)Nzpyproject.toml)�os�path�join)rrrr�make_pyproject_pathsr�BuildSystemDetails)�requires�backend�check�backend_path)�
use_pep517�pyproject_toml�setup_py�req_namerc
Cs�tj�|�}tj�|�}|s.|s.t|�d���|rtt|dd��}t�|�}Wd�n1s^0Y|�d�}nd}|r�|s�|dur�|s�td��d}n<|r�d|vr�|dur�|s�td	�|d���d}n|dur�|}|dus�J�|s�dS|du�rd
dgdd
�}|du�sJ�d}	d|v�r0t|	j|dd���|d}
t	|
��sTt|	j|dd���|
D]@}zt
|�Wn,t�y�t|	j|d�|�d���Yn0�qX|�d�}|�dg�}
g}|du�r�d}d
dg}t|
|||
�S)aBLoad the pyproject.toml file.

    Parameters:
        use_pep517 - Has the user requested PEP 517 processing? None
                     means the user hasn't explicitly specified.
        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-systemzIDisabling PEP 517 processing is invalid: project does not have a setup.pyT�
build-backendzbDisabling PEP 517 processing is invalid: project specifies a build backend of {} in pyproject.tomlzsetuptools>=40.8.0�wheelz setuptools.build_meta:__legacy__)rr&zO{package} has a pyproject.toml file that does not comply with PEP 518: {reason}rz]it has a 'build-system' table but not 'build-system.requires' which is mandatory in the table)�package�reasonz1'build-system.requires' is not a list of strings.z='build-system.requires' contains an invalid requirement: {!r}zbackend-path)
rr�isfiler	�openr�load�get�formatrrrr)r!r"r#r$�
has_pyproject�	has_setup�f�pp_toml�build_system�error_templater�requirementrr rrrr�load_pyproject_tomls��(���

�	�
��
�����



r6)r�collectionsr�typingrrr�pip._vendorrZ"pip._vendor.packaging.requirementsrr�pip._internal.exceptionsr	�boolrr
rrr6rrrr�<module>s��

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic