Uname : Linux serv1.rebootns.com 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
Soft : LiteSpeed
Ip : 139.99.125.122
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
setuptools
/
config
/
__pycache__
[ HOME ]
Exec
Submit
expand.cpython-311.pyc
� |�P�ؚ�� �Z � d Z ddlmZ ddlZddlZddlZddlZddlZddlm Z m Z mZ ddlm Z ddlmZ ddlmZmZ ddlmZ dd lmZ dd lmZmZ ddlmZmZmZmZ dd lmZ ddl m!Z!m"Z# ddl$m%Z% ddl&m'Z' ddl(m)Z) erddl*m+Z+ ddl,m-Z- ed� � Z. edd�� � Z/ G d� d� � Z0 d\d]d �Z1 d\d^d$�Z2d_d'�Z3d`d*�Z4dad,�Z5 dbdcd1�Z6ddd5�Z7ded8�Z8dfd:�Z9 dbdgd=�Z: dbdhdA�Z;ddddB�didE�Z<djdH�Z=dkdK�Z>dldN�Z? d\dmdR�Z@ dndodW�ZA G dX� dY� � ZB G dZ� d[ee.e/f � � ZCdS )pai Utility functions to expand configuration directives or special values (such glob patterns). We can split the process of interpreting configuration files into 2 steps: 1. The parsing the file contents from strings to value objects that can be understand by Python (for example a string with a comma separated list of keywords into an actual Python list of strings). 2. The expansion (or post-processing) of these values according to the semantics ``setuptools`` assign to them (for example a configuration field with the ``file:`` directive should be expanded from a list of file paths to a single string with the contents of those files concatenated) This module focus on the second step, and therefore allow sharing the expansion functions among several configuration file formats. **PRIVATE MODULE**: API reserved for setuptools internal usage only. � )�annotationsN)�Iterable�Iterator�Mapping)�ConfigParser)�iglob)� ModuleSpec�all_suffixes)�chain)�Path)� ModuleType� TracebackType)� TYPE_CHECKING�Any�Callable�TypeVar� )�_static)�StrPath� same_path)�find_package_path)�SetuptoolsWarning)�DistutilsOptionError)�Self)�Distribution�_K�_V_coT)� covariantc �* � e Zd ZdZdd�Zdd �Zdd�Zd S )�StaticModulez>Proxy to a module object that avoids executing arbitrary code.�name�str�specr �return�Nonec �� � t j t j |j � � � � � � � }t | � � � t � � � � | ` d S �N) �ast�parse�pathlibr �origin� read_bytes�vars�update�locals�self)r0 r! r# �modules �i/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/setuptools/config/expand.py�__init__zStaticModule.__init__8 sP � ���7�<���4�4�?�?�A�A�B�B���T� � ���&�(�(�#�#�#��I�I�I� �!Iterator[tuple[ast.AST, ast.AST]]c # �� �K � | j j D ]g�t �t j � � r�fd��j D � � E d {V �� �6t �t j � � r�j r�j �j fV � �hd S )Nc 3 �* �K � | ] }|�j fV � �d S r'