%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core20/current/lib/python3/dist-packages/setuptools/__pycache__/
Upload File :
Create Path :
Current File : //snap/core20/current/lib/python3/dist-packages/setuptools/__pycache__/installer.cpython-38.pyc

U

@{?^��@s�ddlZddlZddlZddlZddlmZddlmZddlZddl	m
Z
ddlmZddl
mZddlmZd	d
�Zdd�Zd
d�Zdd�ZdS)�N)�log)�DistutilsError)�easy_install)�six)�Wheel�)�TemporaryDirectorycCs*t|tj�r|��St|ttf�s&t�|S)z8Ensure find-links option end-up being a list of strings.)�
isinstancerZstring_types�split�tuple�list�AssertionError)�
find_links�r�6/usr/lib/python3/dist-packages/setuptools/installer.py�_fixup_find_linkssrc
Cs�|�ddgi�}|�d�}|��|�dd�|�d���D��|jr||jdd�}d|krpt|dd�|}d|f|d<|��}t|d	g|d
ddddd
d
dd�}|�	�|�|�S)
zJFetch an egg needed for building.

    Legacy path using EasyInstall.
    Zscript_argsrcss"|]\}}|dkr||fVqdS))r�	site_dirs�	index_url�optimizer�allow_hostsNr)�.0�k�vrrr�	<genexpr> s�z*_legacy_fetch_build_egg.<locals>.<genexpr>NrrZsetup�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�cmdrrr�_legacy_fetch_build_eggs6

��r)cCs�zt�d�Wn.tjk
r<|�dtj�t||�YSXzt�d�Wn$tjk
rp|�dtj�YnXt|�}|�d�}d|kr�t	d��dt
jks�d	t
jkr�d
}nd}dt
jkr�d
}nd|kr�|dd}nd
}d|k�rt|dd�d
d
�}ng}|j
�r|�|j
�t
j�|���}t��}t�|�D]$}||k�r:|�|��r:|S�q:t���8}	tjdddddd|	g}
|�r�|
�d�|d
k	�r�|
�d|f�|d
k	�r�|D]}|
�d|f��q�|j�r�|
�|j�n|
�t|��zt�|
�Wn2tjk
�r0}zt	t|���W5d
}~XYnXtt�t
j� |	d��d�}
t
j� ||
�!��}|
�"|�t�#|t
j� |d��}tj$j%||d�}|W5QR�SQRXd
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)Zmetadata)&�
pkg_resourcesZget_distributionZDistributionNotFoundZannouncerZWARNr)�strip_markerrr�os�environrr#�extend�path�realpathr$ZEnvironment�find_distributionsZcan_addr�sys�
executable�appendZurl�str�
subprocessZ
check_callZCalledProcessErrorr�glob�joinZegg_nameZinstall_as_eggZPathMetadataZDistributionZ
from_filename)r%r&r'�quietrrZeggs_dirZenvironmentZegg_distZtmpdirr(�link�er*Z
dist_locationZ
dist_metadatarrr�fetch_build_egg8s��



�



��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�parser6Zmarker)r&rrrr,�sr,)r8r-r7r3Z	distutilsrZdistutils.errorsrr+Zsetuptools.command.easy_installrZsetuptools.externrZsetuptools.wheelrZ
py31compatrrr)r=r,rrrr�<module>s U

Zerion Mini Shell 1.0