:Qg rddlZddlZGddZdZeeeddS)NcVeZdZdZd dZedZdZdZdZ d Z d d Z d Z dS)VendorImporterz A PEP 302 meta path importer for finding optionally-vendored or otherwise naturally-installed packages from root_name. Ncv||_t||_|p|dd|_dS)Nextern_vendor) root_namesetvendored_namesreplace vendor_pkg)selfr r r s z/builddir/build/BUILD/imunify360-venv-2.5.0/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/extern/__init__.py__init__zVendorImporter.__init__ s9"!.11$N (9(9(I(N(Nc#*K|jdzVdVdS)zL Search first the vendor package then as a natural package. .N)r rs r search_pathzVendorImporter.search_paths( o####rc||jdz\}}}| o&tt|j|jS)z,Figure out if the target module is vendored.r) partitionr anymap startswithr )rfullnamerootbasetargets r_module_matches_namespacez(VendorImporter._module_matches_namespacesH%//0DEEdFxLCF$5t7J K KLLLrc6||jdz\}}}|jD]K} ||z}t|tj|}|tj|<|cS#t $rYHwxYwt djdit)zK Iterate over the search path to locate and load fullname. rzThe '{target}' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.Nr) rr r __import__sysmodules ImportErrorformatlocals)rrrrrprefixextantmods r load_modulezVendorImporter.load_modules&//0DEEdF&  F &6"""k&)(+ H%     ' !'33*033 s6A%% A21A2c6||jSN)r+name)rspecs r create_modulezVendorImporter.create_module3s ***rcdSr-r)rmodules r exec_modulezVendorImporter.exec_module6s rcp||r tj||ndS)z(Return a module spec for vendored names.N)r importlibutilspec_from_loader)rrpathrs r find_speczVendorImporter.find_spec9s9--h77 IN + +Hd ; ; ; rcd|tjvr!tj|dSdS)zR Install this importer into sys.meta_path if not already present. N)r# meta_pathappendrs rinstallzVendorImporter.installAs5 s} $ $ M  & & & & & % $r)rN)NN) __name__ __module__ __qualname____doc__rpropertyrr r+r0r3r9r=rrrrrs OOOO XMMM ,+++       '''''rr) packaging ordered_setmore_itertoolsimportlib_metadatazippimportlib_resourcesjaracotyping_extensionstomlizsetuptools._vendor)importlib.utilr5r#rnamesr>r=rrrrNs{ A'A'A'A'A'A'A'A'H x 455==?????r