Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
keewenaw
GitHub Repository: keewenaw/ethereum-wallet-cracker
Path: blob/main/test/lib/python3.9/site-packages/setuptools/__pycache__/installer.cpython-39.pyc
4799 views
a

���b��@s�ddlZddlZddlZddlZddlZddlZddlmZddlm	Z	ddl
Z
ddlmZddl
mZdd�Zd	d
�Zdd�ZdS)
�N)�log)�DistutilsError)�Wheel�)�SetuptoolsDeprecationWarningcCs(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
�h/Users/keewenaw/Desktop/ethereum-wallet-cracker/test/lib/python3.9/site-packages/setuptools/installer.py�_fixup_find_linkss
rcCsbt�dt�zt�d�Wn"tjy<|�dtj�Yn0t	|�}|�
d�}d|vr`td��dtj
vordtj
v}d	tj
vr�d
}nd|vr�|dd}nd
}d
|vr�t|d
d�d
d
�ng}|jr�|�|j�tj�|���}t��}t�|�D]}||vr�|�|�r�|Sq�t����,}	tjdddddd|	g}
|�rH|
�d�|d
u�r`|
�d|f�|�phgD]}|
�d|f��qj|
�|j�p�t|��zt�|
�Wn6tj �y�}ztt|��|�WYd
}~n
d
}~00t!t"�"tj�#|	d��d�}
tj�#||
�$��}|
�%|�t�&|tj�#|d��}tj'j(||d�}|Wd
�S1�sT0Yd
S)zLFetch an egg needed for building.

    Use pip/wheel to fetch/build a wheel.z\setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.�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_urlrrz-m�pipz--disable-pip-version-checkz	--no-depsz-wz--quietz--index-urlz--find-linksz*.whlrzEGG-INFO)�metadata))�warnings�warnr�
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�quietrrZeggs_dir�environmentZegg_distZtmpdir�cmd�link�er�
dist_locationZ
dist_metadatar
r
r�fetch_build_eggsn�

 �
�

$
��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)r6r
r
rr_sr)r/rr,r(r&r�	distutilsr�distutils.errorsrrZsetuptools.wheelrZ_deprecation_warningrrr>rr
r
r
r�<module>sH