Re @s<ddlZGdddZdZeeejdS) Nc@saeZdZdZfdddZeddZdddZd d Zd d Z dS) VendorImporterz A PEP 302 meta path importer for finding optionally-vendored or otherwise naturally-installed packages from root_name. NcCs7||_t||_|p-|jdd|_dS)NZextern_vendor) root_namesetvendored_namesreplace vendor_pkg)selfrrrr /builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pkg_resources/extern/__init__.py__init__ s zVendorImporter.__init__ccs|jdVdVdS)zL Search first the vendor package then as a natural package. .N)r)r r r r search_paths zVendorImporter.search_pathcCsL|j|jd\}}}|r)dStt|j|jsHdS|S)z Return self when fullname starts with root_name and the target module is one vendored through this importer. r N) partitionranymap startswithr)r fullnamepathrootbasetargetr r r find_modules zVendorImporter.find_modulec Cs|j|jd\}}}x|jD]j}yO||}t|tj|}|tj|s D