ef}ddlZddlZddlZddlZddlZddlmZddlmZddl m Z ddl m Z ddl mZddlmZd Zd Zd Zd Zd ZdZGddeZdS)N)log)DistutilsError)partial)_reqs)Wheel)SetuptoolsDeprecationWarningct|tr|St|ttfsJ|S)z8Ensure find-links option end-up being a list of strings.) isinstancestrsplittuplelist) find_linkss t/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/installer.py_fixup_find_linksrsF*c"""!!! j5$- 0 000 0 crtt|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_eggrs4d### #D# . ..rc4ddl}tdt||jt j||jtt|d}|D]}|j |d|S)Nr) stacklevelT) installerreplace_conflicting)replace) pkg_resourcesrrr working_setresolverparse Requirementrradd)rrequiresr"resolved_distss r_fetch_build_eggsr* s+++d###".66 Hm7882D99 7N ::!%%dD%9999 rc Dddl}t|}|d}d|vrtddtjvo dtjv}dtjvrd}nd|vr|dd }nd}d |vr#t |d d ddng}|jr||jtj | }| }| |D]} | |vr|| r| cS tj5} t"jd d d ddd| g} |r| d|| d|f|pgD]} | d| f| |jpt+| t-j| n4#t,j$r"} tt+| | d} ~ wwxYwt3t5jtj | dd}tj ||}||||tj |d}|j ||}|cdddS#1swxYwYdS)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    rz ) Mm2:.ME"*$$   %a(  7Ct7K7K$|,Q/0033QS 1$/000w 6 6 8 899H++--K!44X>> s??{228<>qABB Xu~~/?/?@@  ]+++%22 27<< zBB  )77 M8  E""""""""""""""""""s8B L"G76L7H(H##H((C LLLcjddl}|jt|}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. rN)r"r&r%r marker)rr"s rr5r5ts:   # ) )#c(( 3 3CCJ Jrcddl} |ddS#|j$r$|dtjYdSwxYw)Nrr3z,WARNING: The wheel package is not available.)r"get_distributionDistributionNotFoundannouncerWARN)rr"s rrrspP&&w/////  -PPP DchOOOOOOPs*A  A ceZdZdZdZdS)rz9setuptools.installer and fetch_build_eggs are deprecated.z Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. N)__name__ __module__ __qualname___SUMMARY_DETAILSrrrrsJHHHHrr)rJr7rGrCrA distutilsrdistutils.errorsr functoolsrrr3rwarningsr rrr*rr5rrrirrros7  ++++++222222///    AAAH   PPP7r