| Server IP : 104.21.21.239 / Your IP : 216.73.216.55 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7 System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/setuptools/__pycache__/ |
Upload File : |
a
H�8hqZ � @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z d dlm
Z
d dlmZ d dl
Z
d dlmZmZ d dlmZmZ d dlmZ G d d
� d
�Ze
jdd� �Zddd�Zdd� Zdd� Zddd�ZG dd� d�ZG dd� de�ZG dd� de�ZdS )� N)�defaultdict)�partial��wraps)�iglob)�DistutilsOptionError�DistutilsFileError)�Version�InvalidVersion)�SpecifierSetc @ s e Zd ZdZdd� Zdd� ZdS )�StaticModulez0
Attempt to load the module by the name
c C s` t j�|�}t|j��}|�� }W d � n1 s40 Y t�|�}t| �� t
� � | `d S �N)� importlib�util� find_spec�open�origin�read�ast�parse�vars�update�locals�self)r �name�specZstrm�src�module� r �5/usr/lib/python3.9/site-packages/setuptools/config.py�__init__ s &
zStaticModule.__init__c
s^ zt � fdd�| jjD ��W S tyX } z$tdjf i t� ���|�W Y d }~n
d }~0 0 d S )Nc 3 sH | ]@}t |tj�r|jD ](}t |tj�r|j� krt�|j�V qqd S r
)�
isinstancer ZAssign�targets�Name�idZliteral_eval�value)�.0Z statement�target��attrr r � <genexpr># s
�z+StaticModule.__getattr__.<locals>.<genexpr>z#{self.name} has no attribute {attr})�nextr �body� Exception�AttributeError�formatr )r r) �er r( r �__getattr__! s �
��zStaticModule.__getattr__N)�__name__�
__module__�__qualname__�__doc__r r1 r r r r r s r c c s8 z$t j�d| � dV W t j�| � nt j�| � 0 dS )zH
Add path to front of sys.path for the duration of the context.
r N)�sys�path�insert�remove)r7 r r r �
patch_path0 s r: Fc C s� ddl m}m} tj�| �} tj�| �s4td| ��t�� }t� tj�
| �� zT|� }|rb|�� ng }| |vrx|�| � |j
||d� t||j|d�}W t� |� nt� |� 0 t|�S )a, Read given configuration file and returns options from it as a dict.
:param str|unicode filepath: Path to configuration file
to get options from.
:param bool find_others: Whether to search for other configuration files
which could be on in various places.
:param bool ignore_option_errors: Whether to silently ignore
options, values of which could not be resolved (e.g. due to exceptions
in directives such as file:, attr:, etc.).
If False exceptions are propagated as expected.
:rtype: dict
r )�Distribution�
_Distributionz%Configuration file %s does not exist.)� filenames)�ignore_option_errors)Zsetuptools.distr; r<