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: //usr/local/lib/python3.7/site-packages/setuptools/__pycache__/installer.cpython-37.pyc
B

N��g>�@s�ddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZddlmZd	d
�Zdd�Zd
d�Zdd�Zdd�Zdd�ZGdd�de�ZdS)�N)�log)�DistutilsError)�partial�)�_reqs)�Wheel)�SetuptoolsDeprecationWarningcCs(t|t�r|��St|ttf�s$t�|S)z8Ensure find-links option end-up being a list of strings.)�
isinstance�str�split�tuple�list�AssertionError)�
find_links�r�8/tmp/pip-unpacked-wheel-yrlplx0q/setuptools/installer.py�_fixup_find_linkss
rcCst��t|�t||�S)zLFetch an egg needed for building.

    Use pip/wheel to fetch/build a wheel.)�_DeprecatedInstaller�emit�_warn_wheel_not_available�_fetch_build_egg_no_warn)�dist�reqrrr�fetch_build_eggsrcCs`ddl}tjdd�t|�|jjt�||j�t	t
|�dd�}x|D]}|jj|dd�qDW|S)Nr�)�
stacklevelT)�	installer�replace_conflicting)�replace)�
pkg_resourcesrrr�working_set�resolver�parse�Requirementrr�add)r�requiresrZresolved_distsrrr�_fetch_build_eggs s
r&cCsddl}t|�}|�d�}d|kr*td��dtjko<dtjk}dtjkrNd}nd|krd|dd	}nd}d
|kr�t|d
d	�dd�ng}|jr�|�|j�tj	�
|���}|��}x(|�
|�D]}	|	|kr�|�|	�r�|	Sq�Wt���� }
tjddd
ddd|
g}|�r|�d�|dk	�r*|�d|f�x"|�p4gD]}|�d|f��q6W|�|j�p`t|��yt�|�Wn4tjk
�r�}
ztt|
��|
�Wdd}
~
XYnXtt�tj	�|
d��d�}tj	�||���}|�|�|�|tj	�|d��}|jj ||d�}|SQRXdS)Nr�easy_installZallow_hostszQthe `allow-hosts` option is not supported when using pip to install requirements.Z	PIP_QUIETZPIP_VERBOSEZ
PIP_INDEX_URL�	index_urlrrz-m�pipz--disable-pip-version-check�wheelz	--no-depsz-wz--quietz--index-urlz--find-linksz*.whlzEGG-INFO)�metadata)!r�strip_marker�get_option_dictr�os�environrZdependency_links�extend�path�realpathZget_egg_cache_dir�Environment�find_distributions�can_add�tempfile�TemporaryDirectory�sys�
executable�append�urlr
�
subprocess�
check_call�CalledProcessErrorr�glob�join�egg_nameZinstall_as_egg�PathMetadata�Distribution�
from_filename)rrr�opts�quietr(rZeggs_dir�environmentZegg_distZtmpdir�cmd�link�er*�
dist_locationZ
dist_metadatarrrr0sX

 

 

rcCs"ddl}|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.
    rN)rr#r"r
�marker)rrrrrr,msr,cCs@ddl}y|�d�Wn$|jk
r:|�dtj�YnXdS)Nrr*z,WARNING: The wheel package is not available.)r�get_distribution�DistributionNotFound�announcer�WARN)rrrrrr{s
rc@seZdZdZdZdS)rz9setuptools.installer and fetch_build_eggs are deprecated.z�
    Requirements should be satisfied by a PEP 517 installer.
    If you are using pip, you can try `pip install --use-pep517`.
    N)�__name__�
__module__�__qualname__Z_SUMMARYZ_DETAILSrrrrr�sr)r?r.r<r8r6�	distutilsr�distutils.errorsr�	functoolsr�rr*r�warningsrrrr&rr,rrrrrr�<module>s"	=