HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //proc/thread-self/root/lib/python3.9/site-packages/setuptools/__pycache__/installer.cpython-39.pyc
a

>��h��@s�ddlZddlZddlZddlZddlZddlmZddlmZddl	Z	ddl
mZddlm
Z
dd�Zdd	�Zd
d�Zdd
�ZdS)�N)�log)�DistutilsError)�easy_install)�WheelcCs(t|t�r|��St|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_linkss
rc
Cs�|�ddgi�}|�d�}|��|�dd�|�d���D��|jr||jdd�}d|vrpt|dd�|}d|f|d<|��}t|d	g|d
ddddd
d
dd�}|�	�|�|�S)
zJFetch an egg needed for building.

    Legacy path using EasyInstall.
    Zscript_argsrcss"|]\}}|dvr||fVqdS))r�	site_dirs�	index_url�optimizer�allow_hostsNr)�.0�k�vrrr
�	<genexpr>s�z*_legacy_fetch_build_egg.<locals>.<genexpr>Nr�Zsetup�xTF)
�args�install_dirZexclude_scriptsZalways_copyZbuild_directoryZeditableZupgradeZ
multi_versionZ	no_report�user)
�	__class__�get_option_dict�clear�update�items�dependency_linksr�get_egg_cache_dirrZensure_finalized)�dist�reqZtmp_dist�optsZlinksr�cmdrrr
�_legacy_fetch_build_eggs(

��r'cCs�zt�d�Wn,tjy:|�dtj�t||�YS0zt�d�Wn"tjyl|�dtj�Yn0t|�}|�d�}d|vr�t	d��dt
jvs�d	t
jvr�d
}nd}dt
jvr�d
}nd|vr�|dd}nd
}d|vr�t|dd�d
d
�}ng}|j
�r|�|j
�t
j�|���}t��}t�|�D]$}||v�r4|�|��r4|S�q4t����>}	tjdddddd|	g}
|�r�|
�d�|d
u�r�|
�d|f�|d
u�r�|D]}|
�d|f��q�|j�r�|
�|j�n|
�t|��zt�|
�Wn6tj�y0}zt	t|��|�WYd
}~n
d
}~00tt � t
j�!|	d��d�}
t
j�!||
�"��}|
�#|�t�$|t
j�!|d��}tj%j&||d�}|Wd
�S1�s�0Yd
S)zLFetch an egg needed for building.

    Use pip/wheel to fetch/build a wheel.Zpipz�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_resourcesZget_distributionZDistributionNotFoundZannouncerZWARNr'�strip_markerrr�os�environrr!�extend�path�realpathr"ZEnvironment�find_distributionsZcan_add�tempfileZTemporaryDirectory�sys�
executable�append�urlr�
subprocessZ
check_callZCalledProcessErrorr�glob�joinZegg_nameZinstall_as_eggZPathMetadataZDistributionZ
from_filename)r#r$r%�quietrrZeggs_dirZenvironmentZegg_distZtmpdirr&�link�er(Z
dist_locationZ
dist_metadatarrr
�fetch_build_egg6s��

�


$
��r=cCstj�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�parserZmarker)r$rrr
r+�sr+)r8r,r7r3r2Z	distutilsrZdistutils.errorsrr*Zsetuptools.command.easy_installrZsetuptools.wheelrrr'r=r+rrrr
�<module>s U