_i \ d dl Zd dlZ G d d ZdZ eeed j y) Nc N e Zd ZdZddZed Zd Zd Zd Z d Z dd Zd Zy) VendorImporterz A PEP 302 meta path importer for finding optionally-vendored or otherwise naturally-installed packages from root_name. Nc h || _ t | | _ |xs |j dd | _ y )Nextern_vendor) root_namesetvendored_namesreplace vendor_pkg)selfr r r s /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/extern/__init__.py__init__zVendorImporter.__init__ s/ "!.1$N (9(9(I(N c # 6 K | j dz d yw)zL Search first the vendor package then as a natural package. . N)r r s r search_pathzVendorImporter.search_path s oo##s c |j | j dz \ }}}| xr) t t |j | j S )z,Figure out if the target module is vendored.r ) partitionr anymap startswithr )r fullnamerootbasetargets r _module_matches_namespacez(VendorImporter._module_matches_namespace sG %//0DEdFxLCF$5$5t7J7J KLLr c @ |j | j dz \ }}}| j D ]<