� ,�Re� ��r�ddlZddlZGd�d��ZdZeeed�����dS)�Nc�V�eZdZdZd d�Zed���Zd�Zd�Zd�Z 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. �Nc�v�||_t|��|_|p|�dd��|_dS)N�extern�_vendor)� root_name�set�vendored_names�replace� vendor_pkg)�selfr r r s ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/extern/__init__.py�__init__zVendorImporter.__init__ s9��"���!�.�1�1���$�N� �(9�(9�(�I�(N�(N�����c#�*K�|jdzV�dV�dS)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|j����S)z,Figure out if the target module is vendored.r)� partitionr �any�map� startswithr )r�fullname�root�base�targets r�_module_matches_namespacez(VendorImporter._module_matches_namespacesH��%�/�/����0D�E�E���d�F��x�L�C��F�$5�t�7J� K� K�L�L�Lrc�6�|�|jdz��\}}}|jD]K} ||z}t|��tj|}|tj|<|cS#t $rY�HwxYwt djdit�������)zK Iterate over the search path to locate and load fullname. rz�The '{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__�sys�modules� ImportError�format�locals)rrrrr�prefix�extant�mods r� load_modulezVendorImporter.load_modules���&�/�/����0D�E�E���d�F��&� � �F� ��&����6�"�"�"��k�&�)��(+�� �H�%�� � � ��� � � ��� �����'� �!'�3�3�*0���3�3��� s�6A%�% A2�1A2c�6�|�|j��S�N)r+�name)r�specs r� create_modulezVendorImporter.create_module3s������ �*�*�*rc��dSr-r)r�modules r� exec_modulezVendorImporter.exec_module6s�� �rc�p�|�|��r tj�||��ndS)z(Return a module spec for vendored names.N)r � importlib�util�spec_from_loader)rr�pathrs r� find_speczVendorImporter.find_spec9s:���-�-�h�7�7� B�I�N� +� +�H�d� ;� ;� ;�=A� rc�d�|tjvr!tj�|��dSdS)zR Install this importer into sys.meta_path if not already present. N)r#� meta_path�appendrs r�installzVendorImporter.install@s5�� �s�}� $� $� �M� � �� &� &� &� &� &� %� $r)rN)NN) �__name__� __module__� __qualname__�__doc__r�propertyrr r+r0r3r9r=rrrrrs��������� O�O�O�O� ����X��M�M�M� ���,+�+�+� � � � � � � �'�'�'�'�'rr) � packaging� pyparsing� ordered_set�more_itertools�importlib_metadata�zipp�importlib_resources�jaraco�typing_extensions�tomlizsetuptools._vendor)�importlib.utilr5r#r�namesr>r=rrr�rOs{������ � � � �@'�@'�@'�@'�@'�@'�@'�@'�F ����x�� 4�5�5�=�=�?�?�?�?�?r