źhC|ddlZddlZgdZ ddlmZn#e$r ddlmZYnwxYwdZdZGddZ d Z dS) N)install NullFinderProtocol)rcptj|t|S)z Class decorator for installation on sys.meta_path. Adds the backport DistributionFinder to sys.meta_path and attempts to disable the finder functionality of the stdlib DistributionFinder. )sys meta_pathappenddisable_stdlib_finder)clss /builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_vendor/importlib_metadata/_compat.pyrrs1M JcJd}t|tjD]}|`dS)z Give the backport primacy for discovering path-based distributions by monkey-patching the stdlib O_O. See #91 for more background for rationale on this sketchy behavior. cLt|dddkot|dS)N __module___frozen_importlib_externalfind_distributions)getattrhasattr)finders r matchesz&disable_stdlib_finder..matches%s8 L$  )*T.5f>R.S.S TrN)filterrr r)rrs r r r sDTTT #-00&&  % %&&rc,eZdZdZedZeZdS)rzj A "Finder" (aka "MetaClassFinder") that never finds any modules, but may find distributions. cdS)N)argskwargss r find_speczNullFinder.find_spec4strN)__name__r __qualname____doc__ staticmethodr find_modulerrr rr.s: \KKKrrc:tjdk}||zS)zY Adjust for variable stacklevel on partial under PyPy. Workaround for #327. PyPy)platformpython_implementation)valis_pypys r pypy_partialr*As! ,..&8G =r) rr&__all__typingr ImportErrortyping_extensionsrr rr*rrr r/s  0 / /----,,,,,,,,-   &&&$&s  ##