Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/__pycache__/namespaces.cpython-311.pyc

�

�܋f8��|�ddlZddlmZddlZddlmZejjZGd�d��Z	Gd�de	��Z
dS)	�N)�log�)�py39c�^�eZdZdZd�Zd�Zd�Zd�ZdZ	dZ		d�Z
d	�Zd
�Ze
d���ZdS)
�	Installerz
-nspkg.pthc��|���}|sdS|���}|j�|��t	jd|��t
|j|��}|jrt|��dSt|dtj���5}|�
|��ddd��dS#1swxYwYdS)Nz
Installing %s�wt)�encoding)�_get_all_ns_packages�_get_nspkg_file�outputs�appendr�info�map�_gen_nspkg_line�dry_run�list�openr�LOCALE_ENCODING�
writelines)�self�nsp�filename�lines�fs     �f/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/namespaces.py�install_namespaceszInstaller.install_namespacess���'�'�)�)���	��F��'�'�)�)������H�%�%�%����(�+�+�+��D�(�#�.�.���<�	���K�K�K��F�
�(�D�4�+?�
@�
@�
@�	 �A�
�L�L�����	 �	 �	 �	 �	 �	 �	 �	 �	 �	 �	 �	 ����	 �	 �	 �	 �	 �	 s�%C�C�Cc���|���}tj�|��sdSt	jd|��tj|��dS)NzRemoving %s)r�os�path�existsrr�remove)rrs  r�uninstall_namespaceszInstaller.uninstall_namespaces sV���'�'�)�)���w�~�~�h�'�'�	��F�����)�)�)�
�	�(������c�~�tj�|�����\}}||jzS�N)rr �splitext�_get_target�	nspkg_ext)rr�_s   rrzInstaller._get_nspkg_file's4���g�&�&�t�'7�'7�'9�'9�:�:���!��$�.�(�(r$c��|jSr&)�target�rs rr(zInstaller._get_target+s
���{�r$)zimport sys, types, osz$p = os.path.join(%(root)s, *%(pth)r)z(importlib = __import__('importlib.util')z!__import__('importlib.machinery')z�m = sys.modules.setdefault(%(pkg)r, importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec(%(pkg)r, [os.path.dirname(p)])))zCm = m or sys.modules.setdefault(%(pkg)r, types.ModuleType(%(pkg)r))z7mp = (m or []) and m.__dict__.setdefault('__path__',[])z(p not in mp) and mp.append(p))z4m and setattr(sys.modules[%(parent)r], %(child)r, m)c��dS)Nz$sys._getframe(1).f_locals['sitedir']�r-s r�	_get_rootzInstaller._get_rootCs��5�5r$c��t|�d����}|���}|j}|�d��\}}}|r
||jz
}d�|��t��zdzS)N�.�;�
)�tuple�splitr0�_nspkg_tmpl�
rpartition�_nspkg_tmpl_multi�join�locals)r�pkg�pth�root�
tmpl_lines�parent�sep�childs        rrzInstaller._gen_nspkg_lineFs}���C�I�I�c�N�N�#�#���~�~�����%�
� �^�^�C�0�0����U��	1��$�0�0�J��x�x�
�#�#�f�h�h�.��5�5r$c
��|jjpg}ttt	t|j|��������S)z,Return sorted list of all package namespaces)�distribution�namespace_packages�sorted�set�flattenr�
_pkg_names)r�pkgss  rrzInstaller._get_all_ns_packagesOs<��� �3�9�r���c�'�#�d�o�t�"<�"<�=�=�>�>�?�?�?r$c#�K�|�d��}|r/d�|��V�|���|�-dSdS)z�
        Given a namespace package, yield the components of that
        package.

        >>> names = Installer._pkg_names('a.b.c')
        >>> set(names) == set(['a', 'a.b', 'a.b.c'])
        True
        r2N)r6r:�pop)r<�partss  rrIzInstaller._pkg_namesTs`�����	�	�#�����	��(�(�5�/�/�!�!�!��I�I�K�K�K��	�	�	�	�	r$N)�__name__�
__module__�__qualname__r)rr#rr(r7r9r0rr�staticmethodrIr/r$rrrs��������I� � � �$���)�)�)�����K� (�Q��;�6�6�6�6�6�6�@�@�@�
����\���r$rc��eZdZd�Zd�ZdS)�DevelopInstallerc�D�tt|j����Sr&)�repr�str�egg_pathr-s rr0zDevelopInstaller._get_rootes���C��
�&�&�'�'�'r$c��|jSr&)�egg_linkr-s rr(zDevelopInstaller._get_targeths
���}�r$N)rNrOrPr0r(r/r$rrSrSds2������(�(�(�����r$rS)r�	distutilsr�	itertools�compatr�chain�
from_iterablerHrrSr/r$r�<module>r_s���	�	�	�	������������������/�
'��V�V�V�V�V�V�V�V�r�����y�����r$

Hacked By AnonymousFox1.0, Coded By AnonymousFox