| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3.9/site-packages/setuptools/__pycache__/ |
Upload File : |
a
H�8h� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z d dl
Z
d dlmZ ddl
mZ dd� Zd d
� Zdd� ZdS )
� N)�log)�DistutilsError)�Wheel� )�SetuptoolsDeprecationWarningc C s( t | t�r| �� S t | ttf�s$J �| S )z8Ensure find-links option end-up being a list of strings.)�
isinstance�str�split�tuple�list)�
find_links� r
�8/usr/lib/python3.9/site-packages/setuptools/installer.py�_fixup_find_links s
r c C sb t �dt� zt�d� W n" tjy< | �dtj� Y n0 t |�}| �
d�}d|v r`td��dtj
vordtj
v}d tj
v r�d
}nd|v r�|d d }nd
}d
|v r�t|d
d �d
d
� ng }| jr�|�| j� tj�| �� �}t�� }t�|�D ]}||v r�|�|�r�| S q�t�� ��,} tjdddddd| g}
|�rH|
�d� |d
u�r`|
�d|f� |�phg D ]}|
�d|f� �qj|
�|j�p�t|�� zt�|
� W n6 tj �y� } ztt|��|�W Y d
}~n
d
}~0 0 t!t"�"tj�#| d��d �}
tj�#||
�$� �}|
�%|� t�&|tj�#|d��}tj'j(||d�} | W d
� S 1 �sT0 Y d
S )zLFetch an egg needed for building.
Use pip/wheel to fetch/build a wheel.z\setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.�wheelz,WARNING: The wheel package is not available.Zeasy_installZallow_hostszQthe `allow-hosts` option is not supported when using pip to install requirements.Z PIP_QUIETZPIP_VERBOSEZ
PIP_INDEX_URLN� index_urlr r z-mZpipz--disable-pip-version-checkz --no-depsz-wz--quietz--index-urlz--find-linksz*.whlr zEGG-INFO)�metadata))�warnings�warnr �
pkg_resourcesZget_distributionZDistributionNotFoundZannouncer ZWARN�strip_markerZget_option_dictr �os�environr Zdependency_links�extend�path�realpathZget_egg_cache_dirZEnvironment�find_distributionsZcan_add�tempfileZTemporaryDirectory�sys�
executable�append�urlr �
subprocessZ
check_callZCalledProcessErrorr �glob�joinZegg_nameZinstall_as_eggZPathMetadataZDistributionZ
from_filename)Zdist�reqZopts�quietr r Zeggs_dirZenvironmentZegg_distZtmpdir�cmd�link�er Z
dist_locationZ
dist_metadatar
r
r �fetch_build_egg sn �
�
�
$
��r* c C s t j�t| ��} d| _| S )z�
Return a new requirement without the environment marker to avoid
calling pip with something like `babel; extra == "i18n"`, which
would always be ignored.
N)r ZRequirement�parser Zmarker)r% r
r
r r _ s r )r# r r"