????

Your IP : 3.15.3.240


Current Path : /lib/python3.9/site-packages/setuptools/__pycache__/
Upload File :
Current File : //lib/python3.9/site-packages/setuptools/__pycache__/installer.cpython-39.pyc

a

���f�
�@spddlZddlZddlZddlZddlZddlmZddlmZddl	Z	ddl
mZdd�Zdd�Z
d	d
�ZdS)�N)�log)�DistutilsError)�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_links
s
r
cCsVzt�d�Wn"tjy0|�dtj�Yn0t|�}|�d�}d|vrTtd��dt	j
vofdt	j
v}dt	j
vrxd	}nd
|vr�|d
d}nd	}d|vr�t|dd�d	d	�ng}|jr�|�
|j�t	j�|���}t��}t�|�D]}||vr�|�|�r�|Sq�t����,}	tjd
ddddd|	g}
|�r<|
�d�|d	u�rT|
�
d|f�|�p\gD]}|
�
d|f��q^|
�|j�p�t|��zt�|
�Wn6tj�y�}ztt|��|�WYd	}~n
d	}~00tt�t	j� |	d��d�}
t	j� ||
�!��}|
�"|�t�#|t	j� |d��}tj$j%||d�}|Wd	�S1�sH0Yd	S)zLFetch an egg needed for building.

    Use pip/wheel to fetch/build a wheel.�wheelz,WARNING: The wheel package is not available.Zeasy_installZallow_hostszQthe `allow-hosts` option is not supported when using pip to install requirements.Z	PIP_QUIETZPIP_VERBOSEZ
PIP_INDEX_URLN�	index_url�r
z-mZpipz--disable-pip-version-checkz	--no-depsz-wz--quietz--index-urlz--find-linksz*.whlrzEGG-INFO)�metadata)&�
pkg_resourcesZget_distributionZDistributionNotFoundZannouncerZWARN�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_eggZPathMetadataZDistributionZ
from_filename)Zdist�reqZopts�quietrr
Zeggs_dirZenvironmentZegg_distZtmpdir�cmd�link�erZ
dist_locationZ
dist_metadatarrr�fetch_build_eggsf

 �
�

$
��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)rZRequirement�parserZmarker)r"rrrrXsr)r rrrrZ	distutilsrZdistutils.errorsrrZsetuptools.wheelrr
r'rrrrr�<module>sC