File: //opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/__pycache__/dist.cpython-311.pyc
�
If�� � �x � d gZ ddlZddlZddlZddlZddlZddlZddlmZ ddl m
Z
ddlmZ ddl
mZmZmZmZmZmZmZ ddlZddlZddlZddlZddlZddlmZ ddlmZmZ dd l m!Z! dd
l"m#Z# ddl$m%Z%m&Z& dd
l'm(Z( ddl)m*Z*m+Z+ ddl,m-Z-m.Z. ddl/m0Z0 ddl1m2Z2 ddl1m3Z3 ddl1m4Z4 ddl1m5Z6 ddl7m8Z8 ddl9m:Z:m;Z; ddl<m=Z= ddl>m?Z? ddl@mAZAmBZB eCeDfZEd� ZFd� ZGd� ZHd� ZId� ZJd� ZKd � ZLd!� ZMd"� ZNd#� ZOd$� ZPd%� ZQd&� ZRd'� ZSer
ejT jU ZVn e?ejT jU � � ZV G d(� d eV� � ZU G d)� d*eB� � ZWdS )+�Distribution� N)�suppress)�iglob)�Path)�
TYPE_CHECKING�Dict�List�MutableMapping�Optional�Set�Tuple)�DEBUG)�DistutilsOptionError�DistutilsSetupError��translate_longopt)� strtobool� )� partition�unique_everseen)�
OrderedSet)�
InvalidMarker�Marker)�InvalidSpecifier�SpecifierSet)�Version)�
_entry_points)�_normalization)�_reqs)�command)�metadata)�setupcfg�
pyprojecttoml)�ConfigDiscovery)�
get_unpatched)�InformationOnly�SetuptoolsDeprecationWarningc � � t j |d d �� � }|j rJ �d S # t t t
t f$ r}t |�d|�d�� � |�d }~ww xY w)N)�value�name�groupz/ must be importable 'module:attrs' string (got �))r! �
EntryPoint�extras� TypeError�
ValueError�AttributeError�AssertionErrorr )�dist�attrr) �ep�es �F/opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/dist.py�check_importabler8 - s � ��
�
�u�4�t�
D�
D�
D���9��������z�>�>�B� � � �!�FJ�d�d�E�E�E�R�
�
�� ��������s � $ �A�A�Ac �� � t |t t f� � sJ �d� |� � |k sJ �dS # t t
t t f$ r}t |�d|�d�� � |�d}~ww xY w)z"Verify that value is a string list� z must be a list of strings (got r, N) �
isinstance�list�tuple�joinr/ r0 r1 r2 r �r3 r4 r) r6 s r7 �assert_string_listr@ 7 s� � � � �%�$���/�/�/�/�/��w�w�u�~�~��&�&�&�&�&�&���z�>�>�B� � � �!�7;�t�t�U�U�U�C�
�
�� ��������s �9= �A5�A0�0A5c �8 � |}t | ||� � |D ]�}| � |� � st dd|z z � � �|� d� � \ }}}|r%||vr!t j � d||� � t j ddd�� � ��d S )
z(Verify that namespace packages are validz1Distribution contains no modules or packages for znamespace package %r�.z^WARNING: %r is declared as a package namespace, but %r is not: please correct this in setup.pyz/The namespace_packages parameter is deprecated.z<Please replace its usage with implicit namespaces (PEP 420).z3references/keywords.html#keyword-namespace-packages)�see_docsN) r@ �has_contents_forr �
rpartition� distutils�log�warnr'