
    df                     ~    d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlm	Z	 d dl
Z
d dlmZ ddlmZ d Zd Zd	 Zy)
    N)log)DistutilsError)Wheel   )SetuptoolsDeprecationWarningc                 v    t        | t              r| j                         S t        | t        t        f      sJ | S )z8Ensure find-links option end-up being a list of strings.)
isinstancestrsplittuplelist)
find_linkss    M/home/api-vastappli/venv/lib/python3.12/site-packages/setuptools/installer.py_fixup_find_linksr      s2    *c"!!j5$-00    c           	         t        j                  dt               	 t        j                  d       t        |      }| j                  d      }d|v rt        d      dt        j                  vxr dt        j                  v}d	t        j                  v rd
}nd|v r	|d   d   }nd
}d|v rt        |d   d         d
d
 ng }| j                  r|j!                  | j                         t        j"                  j%                  | j'                               }t        j(                         }t        j*                  |      D ]  }||v s|j-                  |      s|c S  t/        j0                         5 }	t2        j4                  dddddd|	g}
|r|
j7                  d       ||
j!                  d|f       |xs g D ]  }|
j!                  d|f        |
j7                  |j8                  xs t;        |             	 t=        j>                  |
       tC        tE        jD                  t        j"                  jG                  |	d            d         }t        j"                  jG                  ||jI                               }|jK                  |       t        jL                  |t        j"                  jG                  |d            }t        jN                  jQ                  ||      } | cd
d
d
       S # t        j
                  $ r$ | j                  dt        j                         Y w xY w# t<        j@                  $ r}t        t;        |            |d
}~ww xY w# 1 sw Y   y
xY w)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_installallow_hostszQthe `allow-hosts` option is not supported when using pip to install requirements.	PIP_QUIETPIP_VERBOSEPIP_INDEX_URLN	index_urlr   r   z-mpipz--disable-pip-version-checkz	--no-depsz-wz--quietz--index-urlz--find-linksz*.whlr   zEGG-INFO)metadata))warningswarnr   pkg_resourcesget_distributionDistributionNotFoundannouncer   WARNstrip_markerget_option_dictr   osenvironr   dependency_linksextendpathrealpathget_egg_cache_dirEnvironmentfind_distributionscan_addtempfileTemporaryDirectorysys
executableappendurlr
   
subprocess
check_callCalledProcessErrorr   globjoinegg_nameinstall_as_eggPathMetadataDistributionfrom_filename)distreqoptsquietr   r   eggs_direnvironmentegg_disttmpdircmdlinker   dist_locationdist_metadatas                   r   fetch_build_eggrL      s    MM	/$P&&w/ s
C /D G H 	Hrzz)Mm2::.ME"**$			%a(		7Ct7K$|,Q/03  $//0ww 6 6 89H++-K!44X> s?{228<O 
	$	$	& &NND%)[&	
 JJy! JJy12$" 	/DJJ-.	/
 	

377&c#h'	0!!#& diiVW =>qABXu~~/?@]+%22277<<zBD))77M 8 39 ; -- PDchhOP` ,, 	0 Q(a/	0' sC   K+ 0BM8L%CM+3L"!L"%M8MMMMc                 d    t         j                  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   Requirementparser
   marker)r@   s    r   r#   r#   _   s*     
#
#
)
)#c(
3CCJJr   )r8   r%   r5   r1   r/   r   	distutilsr   distutils.errorsr   r   setuptools.wheelr   _deprecation_warningr   r   rL   r#    r   r   <module>rV      s7     	  
    +  " >EP	r   