HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/python38/lib/python3.8/site-packages/setuptools/__pycache__/installer.cpython-38.pyc
U

�i�_��@s�ddlZddlZddlZddlZddlmZddlmZddlZddl	m
Z
ddlmZddl
mZddlmZd	d
�Zdd�Zd
d�Zdd�ZdS)�N)�log)�DistutilsError)�easy_install)�six)�Wheel�)�TemporaryDirectorycCs*t|tj�r|��St|ttf�s&t�|S)z8Ensure find-links option end-up being a list of strings.)�
isinstancer�string_types�split�tuple�list�AssertionError)�
find_links�r�8/tmp/pip-unpacked-wheel-tlqm5ymo/setuptools/installer.py�_fixup_find_linkssrc
Cs�|�ddgi�}|�d�}|��|�dd�|�d���D��|jr||jdd�}d|krpt|dd�|}d|f|d<|��}t|d	g|d
ddddd
d
dd�}|�	�|�|�S)
zJFetch an egg needed for building.

    Legacy path using EasyInstall.
    �script_argsrcss"|]\}}|dkr||fVqdS))r�	site_dirs�	index_url�optimizer�allow_hostsNr)�.0�k�vrrr�	<genexpr> s�z*_legacy_fetch_build_egg.<locals>.<genexpr>Nrr�setup�xTF)
�args�install_dirZexclude_scriptsZalways_copyZbuild_directory�editable�upgradeZ
multi_versionZ	no_report�user)
�	__class__�get_option_dict�clear�update�items�dependency_linksr�get_egg_cache_dirr�ensure_finalized)�dist�reqZtmp_dist�opts�linksr�cmdrrr�_legacy_fetch_build_eggs6

��r0cCs�zt�d�Wn.tjk
r<|�dtj�t||�YSXzt�d�Wn$tjk
rp|�dtj�YnXt|�}|�d�}d|kr�t	d��dt
jks�d	t
jkr�d
}nd}dt
jkr�d
}nd|kr�|dd}nd
}d|k�rt|dd�d
d
�}ng}|j
�r|�|j
�t
j�|���}t��}t�|�D]$}||k�r:|�|��r:|S�q:t���8}	tjdddddd|	g}
|�r�|
�d�|d
k	�r�|
�d|f�|d
k	�r�|D]}|
�d|f��q�|j�r�|
�|j�n|
�t|��zt�|
�Wn2tjk
�r0}zt	t|���W5d
}~XYnXtt�t
j� |	d��d�}
t
j� ||
�!��}|
�"|�t�#|t
j� |d��}tj$j%||d�}|W5QR�SQRXd
S)zLFetch an egg needed for building.

    Use pip/wheel to fetch/build a wheel.�pipz�WARNING: The pip package is not available, falling back to EasyInstall for handling setup_requires/test_requires; this is deprecated and will be removed in a future version.�wheelz,WARNING: The wheel package is not available.rrzQthe `allow-hosts` option is not supported when using pip to install requirements.Z	PIP_QUIETZPIP_VERBOSEFTZ
PIP_INDEX_URLNrrrz-mz--disable-pip-version-checkz	--no-depsz-wz--quietz--index-urlz--find-linksz*.whlrzEGG-INFO)�metadata)&�
pkg_resources�get_distribution�DistributionNotFound�announcer�WARNr0�strip_markerr$r�os�environrr(�extend�path�realpathr)�Environment�find_distributions�can_addr�sys�
executable�append�url�str�
subprocess�
check_call�CalledProcessErrorr�glob�join�egg_nameZinstall_as_egg�PathMetadata�Distribution�
from_filename)r+r,r-�quietrrZeggs_dir�environmentZegg_dist�tmpdirr/�link�er2�
dist_locationZ
dist_metadatarrr�fetch_build_egg8s��



�



��rVcCstj�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)r4�Requirement�parserF�marker)r,rrrr9�sr9)rJr:rGrB�	distutilsr�distutils.errorsrr4Zsetuptools.command.easy_installrZsetuptools.externrZsetuptools.wheelr�
py31compatrrr0rVr9rrrr�<module>s U