Viewing File: /opt/alt/python37/lib/python3.7/site-packages/setuptools/extern/__pycache__/__init__.cpython-37.pyc

B

��Reg	�@s6ddlZddlZGdd�d�ZdZeeed���dS)�Nc@sXeZdZdZddd�Zedd��Zdd	�Zd
d�Zdd
�Z	dd�Z
ddd�Zdd�ZdS)�VendorImporterz�
    A PEP 302 meta path importer for finding optionally-vendored
    or otherwise naturally-installed packages from root_name.
    �NcCs&||_t|�|_|p|�dd�|_dS)NZextern�_vendor)�	root_name�set�vendored_names�replace�
vendor_pkg)�selfrrr	rr��/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/extern/__init__.py�__init__s
zVendorImporter.__init__ccs|jdVdVdS)zL
        Search first the vendor package then as a natural package.
        �.�N)r	)r
rrr�search_pathszVendorImporter.search_pathcCs.|�|jd�\}}}|o,tt|j|j��S)z,Figure out if the target module is vendored.r
)�	partitionr�any�map�
startswithr)r
�fullname�root�base�targetrrr�_module_matches_namespacesz(VendorImporter._module_matches_namespacec	Csz|�|jd�\}}}x^|jD]B}y(||}t|�tj|}|tj|<|Stk
r^YqXqWtdjft����dS)zK
        Iterate over the search path to locate and load fullname.
        r
z�The '{target}' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.N)	rrr�
__import__�sys�modules�ImportError�format�locals)r
rrrr�prefixZextant�modrrr�load_modules


zVendorImporter.load_modulecCs|�|j�S)N)r!�name)r
�specrrr�
create_module3szVendorImporter.create_modulecCsdS)Nr)r
�modulerrr�exec_module6szVendorImporter.exec_modulecCs|�|�rtj�||�SdS)z(Return a module spec for vendored names.N)r�	importlib�util�spec_from_loader)r
r�pathrrrr�	find_spec9szVendorImporter.find_speccCs|tjkrtj�|�dS)zR
        Install this importer into sys.meta_path if not already present.
        N)r�	meta_path�append)r
rrr�install@s
zVendorImporter.install)rN)NN)
�__name__�
__module__�__qualname__�__doc__r�propertyrrr!r$r&r+r.rrrrrs

r)�	packaging�	pyparsingZordered_setZmore_itertoolszsetuptools._vendor)�importlib.utilr'rr�namesr/r.rrrr�<module>sC
Back to Directory File Manager