관리-도구
편집 파일: installer.cpython-39.pyc
a �������f� ����������������������@���sp���d�dl�Z�d�dlZd�dlZd�dlZd�dlZd�dlmZ�d�dlmZ�d�dl Z d�dl mZ�dd��Zdd��Z d d ��ZdS�)�����N)�log)�DistutilsError)�Wheelc�����������������C���s(���t�|�t�r|����S�t�|�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 ���c�����������������C���sV��zt��d��W�n"�t�jy0���|��dtj��Y�n0�t|�}|��d�}d|v�rTtd��dt j vofdt j v}dt j v�rxd }nd |v�r�|d �d�}nd }d|v�r�t|d�d��d d ��ng�}|�jr�|� |�j��t j�|�����}t����}t��|�D�]}||v�r�|�|�r�|��S�q�t�����,} tjd ddddd| g} |�r<| �d��|d u�rT| � d|f��|�p\g�D�]}| � d|f���q^| �|j�p�t|���zt�| ��W�n6�tj�y��}�ztt|��|�W�Y�d }~n d }~0�0�tt�t j� | d��d��} t j� || �!���}| �"|��t��#|t j� |d��}t�j$j%||d�}�|�W��d ����S�1��sH0����Y��d S�)zLFetch an egg needed for building. Use pip/wheel to fetch/build a wheel.�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_url����r ���z-mZpipz--disable-pip-version-checkz --no-depsz-wz--quietz--index-urlz--find-linksz*.whlr���zEGG-INFO)�metadata)&� pkg_resourcesZget_distributionZDistributionNotFoundZannouncer���ZWARN�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_eggZPathMetadataZDistributionZ from_filename)Zdist�reqZopts�quietr���r ���Zeggs_dirZenvironmentZegg_distZtmpdir�cmd�link�er���Z dist_locationZ dist_metadatar���r���r����fetch_build_egg���sf���� � � $ ��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���X���s����r���)r ���r���r���r���r���Z distutilsr���Zdistutils.errorsr���r���Zsetuptools.wheelr���r ���r'���r���r���r���r���r����<module>���s���C