~fiddlZddlZddlZddlZddlZddlmZddlmZddl m Z ddl m Z ddl mZddlmZd Zd Zd Zd Zd ZdZGddeZy)N)log)DistutilsError)partial)_reqs)Wheel)SetuptoolsDeprecationWarningcvt|tr|jSt|ttfsJ|S)z8Ensure find-links option end-up being a list of strings.) isinstancestrsplittuplelist) find_linkss ]/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/setuptools/installer.py_fixup_find_linksrs5*c"!! j5$- 00 0 cXtjt|t||S)zLFetch an egg needed for building. Use pip/wheel to fetch/build a wheel.)_DeprecatedInstalleremit_warn_wheel_not_available_fetch_build_egg_no_warn)distreqs rfetch_build_eggrs%d# #D# ..rc,ddl}tjdt||jj t j||jtt|d}|D]}|jj|d!|S)Nr) stacklevelT) installerreplace_conflicting)replace) pkg_resourcesrrr working_setresolverparse Requirementrradd)rrequiresr"resolved_distss r_fetch_build_eggsr* s+d#"..66 Hm7782D9 7N !!%%dD%9 rc ddl}t|}|jd}d|vr tddtj vxrdtj v}dtj vrd}nd|vr |dd }nd}d |vrt |d d ddng}|jr|j|jtjj|j}|j}|j|D]} | |vs|j| s| cStj 5} t"j$d d d ddd| g} |r| j'd|| jd|f|xsgD]} | jd| f| j'|j(xs t+| t-j.| t3t5j4tjj7| dd}tjj7||j9}|j;||j=|tjj7|d}|j>jA||cdddS#t,j0$r} tt+| | d} ~ wwxYw#1swYyxYw)Nr easy_install allow_hostszQthe `allow-hosts` option is not supported when using pip to install requirements. PIP_QUIET PIP_VERBOSE PIP_INDEX_URL index_urlrrz-mpipz--disable-pip-version-checkwheelz --no-depsz-wz--quietz --index-urlz --find-linksz*.whlzEGG-INFO)metadata)!r" strip_markerget_option_dictrosenvironrdependency_linksextendpathrealpathget_egg_cache_dir Environmentfind_distributionscan_addtempfileTemporaryDirectorysys executableappendurlr subprocess check_callCalledProcessErrorrglobjoinegg_nameinstall_as_egg PathMetadata Distribution from_filename)rrr"optsquietr1reggs_dir environmentegg_disttmpdircmdlinker3 dist_location dist_metadatas rrr0s s C    /D 6   rzz ) Mm2::.ME"**$  %a(  7Ct7K$|,Q/03QS $//0ww 6 6 89H++-K!44X> s?{228<O?  $ $ &! & NN   )        JJy !  JJ y1 2$"$D JJ- .% 377&c#h' 0  ! !# &dii VW =>qAB Xu~~/?@  ]+%22 277<< zB ))77 M8 ?! ! .,, 0 Q(a / 0/! ! s2rosT  +2/  @ F P7r