Your IP : 3.145.44.46


Current Path : /opt/alt/python39/lib/python3.9/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib/python3.9/site-packages/setuptools/__pycache__/_imp.cpython-39.pyc

a

(�ReX	�@sddZddlZddlZddlZddlmZdZdZdZ	dZ
dZd	d
�Zddd�Z
dd
d�Zdd�ZdS)zX
Re-implementation of find_module and get_frozen_object
from the deprecated imp module.
�N�)�module_from_spec����cCs(t|t�rtj��jntjj}|||�S)N)�
isinstance�list�	importlib�	machinery�
PathFinder�	find_spec�util)�module�paths�finder�r��/builddir/build/BUILDROOT/alt-python39-setuptools-58.3.0-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/setuptools/_imp.pyr
s
��r
c	CsRt||�}|durtd|��|js>t|d�r>tj�d|j�}d}d}t|jt	�}|j
dksp|r�t|jtjj
�r�t}d}d}}n�|j
dks�|r�t|jtjj�r�t}d}d}}n�|j�r6|j
}tj�|�d	}|tjjvr�d
nd}|tjjvr�t}n&|tjjv�r
t}n|tjjv�rt}|tthv�rBt||�}nd}d}}|||||ffS)z7Just like 'imp.find_module()', but with package supportN�
Can't find %s�submodule_search_locationsz__init__.py����frozen�zbuilt-inr�r�rb)r
�ImportError�has_location�hasattrr
r�spec_from_loader�loaderr�type�origin�
issubclassr�FrozenImporter�	PY_FROZEN�BuiltinImporter�	C_BUILTIN�os�path�splitext�SOURCE_SUFFIXES�	PY_SOURCE�BYTECODE_SUFFIXES�PY_COMPILED�EXTENSION_SUFFIXES�C_EXTENSION�open)	rr�spec�kind�fileZstaticr(�suffix�moderrr�find_modulesF

�

�
r6cCs&t||�}|std|��|j�|�S�Nr)r
rr�get_code)rrr1rrr�get_frozen_objectGs
r9cCs"t||�}|std|��t|�Sr7)r
rr)rr�infor1rrr�
get_moduleNs
r;)N)N)�__doc__r'�importlib.utilr
�importlib.machineryZ
py34compatrr+r-r/r&r$r
r6r9r;rrrr�<module>s	
*


?>