| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.7/site-packages/setuptools/__pycache__/ |
Upload File : |
B
�a� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z d dl
Z
d dlmZ ddl
mZ dd� Zd d
� Zdd� ZdS )
� N)�log)�DistutilsError)�Wheel� )�SetuptoolsDeprecationWarningc C s t | t�r| �� S | S )z8Ensure find-links option end-up being a list of strings.)�
isinstance�str�split)�
find_links� r �8/usr/lib/python3.7/site-packages/setuptools/installer.py�_fixup_find_links s
r
c C sL t �dt� yt�d� W n$ tjk
r> | �dtj� Y nX t |�}| �
d�}d|krbtd��dtj
kotdtj
k}d tj
kr�d
}nd|kr�|d d }nd
}d
|kr�t|d
d �d
d
� ng }| jr�|�| j� tj�| �� �}t�� }x(t�|�D ]}||kr�|�|�r�|S q�W t�� �� } tjdddddd| g}
|�rJ|
�d� |d
k �rb|
�d|f� x"|�plg D ]}|
�d|f� �qnW |
�|j�p�t|�� yt�|
� W n4 tj k
�r� } ztt|��|�W d
d
}~X Y nX t!t"�"tj�#| d��d �}
tj�#||
�$� �}|
�%|� t�&|tj�#|d��}tj'j(||d�} | S Q R X d
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.Zeasy_installZallow_hostszQthe `allow-hosts` option is not supported when using pip to install requirements.Z PIP_QUIETZPIP_VERBOSEZ
PIP_INDEX_URLN� index_urlr r
z-mZpipz--disable-pip-version-checkz --no-depsz-wz--quietz--index-urlz--find-linksz*.whlr zEGG-INFO)Zmetadata))�warnings�warnr �
pkg_resourcesZget_distributionZDistributionNotFoundZannouncer ZWARN�strip_markerZget_option_dictr �os�environr
Zdependency_links�extend�path�realpathZget_egg_cache_dirZEnvironmentZfind_distributionsZcan_add�tempfileZTemporaryDirectory�sys�
executable�appendZurlr �
subprocessZ
check_callZCalledProcessErrorr �glob�joinZegg_nameZinstall_as_eggZPathMetadataZDistributionZ
from_filename)Zdist�reqZopts�quietr r
Zeggs_dirZenvironmentZegg_distZtmpdir�cmd�link�er Z
dist_locationZ
dist_metadatar r r �fetch_build_egg sd
r% c C s t 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.
N)r ZRequirement�parser Zmarker)r r r r r _ s r )r r r r r r Z distutilsr Zdistutils.errorsr r Zsetuptools.wheelr Z_deprecation_warningr r
r% r r r r r �<module> s H