AlkantarClanX12

Your IP : 52.14.252.16


Current Path : /opt/alt/python37/lib/python3.7/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/setuptools/__pycache__/installer.cpython-37.pyc

B

��Re�
�@spddlZddlZddlZddlZddlZddlmZddlmZddl	Z	ddl
mZdd�Zdd�Z
d	d
�ZdS)�N)�log)�DistutilsError)�WheelcCs(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��/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/installer.py�_fixup_find_links
s
rcCs@yt�d�Wn$tjk
r2|�dtj�YnXt|�}|�d�}d|krVtd��dt	j
kohdt	j
k}dt	j
krzd	}nd
|kr�|d
d}nd	}d|kr�t|dd�d	d	�ng}|jr�|�
|j�t	j�|���}t��}x(t�|�D]}||kr�|�|�r�|Sq�Wt���� }	tjd
ddddd|	g}
|�r>|
�d�|d	k	�rV|
�
d|f�x"|�p`gD]}|
�
d|f��qbW|
�|j�p�t|��yt�|
�Wn4tjk
�r�}ztt|��|�Wd	d	}~XYnXtt�t	j� |	d��d�}
t	j� ||
�!��}|
�"|�t�#|t	j� |d��}tj$j%||d�}|SQRXd	S)zLFetch an egg needed for building.

    Use pip/wheel to fetch/build a wheel.�wheelz,WARNING: The wheel package is not available.�easy_installZallow_hostszQthe `allow-hosts` option is not supported when using pip to install requirements.Z	PIP_QUIETZPIP_VERBOSEZ
PIP_INDEX_URLN�	index_url�rz-m�pipz--disable-pip-version-checkz	--no-depsz-wz--quietz--index-urlz--find-linksz*.whlrzEGG-INFO)�metadata)&�
pkg_resources�get_distribution�DistributionNotFound�announcer�WARN�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)�dist�req�opts�quietrrZeggs_dir�environmentZegg_distZtmpdir�cmd�link�er�
dist_locationZ
dist_metadatarrr
�fetch_build_eggs^

 

 

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�Requirement�parser�marker)r4rrr
rXsr)r-rr*r&r$�	distutilsr�distutils.errorsrrZsetuptools.wheelrrr<rrrrr
�<module>sC