File: D:/Python311/Lib/site-packages/setuptools/command/__pycache__/install_lib.cpython-311.pyc
�
�nc# � �^ � d dl Z d dlZd dlmZmZ d dlmc mZ G d� dej � � ZdS )� N)�product�starmapc �f � e Zd ZdZd� Zd� Zd� Zed� � � Zd� Z ed� � � Z
d
d
�Zd� ZdS )�install_libz9Don't add compiled flags to filenames of non-Python filesc � � | � � � | � � � }|�| � |� � d S d S �N)�build�install�byte_compile)�self�outfiless �@D:\Python311\Lib\site-packages\setuptools/command/install_lib.py�runzinstall_lib.run
sH � ��
�
�����<�<�>�>��� (����h�'�'�'�'�'� (� (� c �� � � � fd�� � � � D � � }t |� � � � � � }t t � j |� � � � S )z�
Return a collections.Sized collections.Container of paths to be
excluded for single_version_externally_managed installations.
c 3 �L �K � | ]}�� |� � D ]}|V � ��d S r )�
_all_packages)�.0�ns_pkg�pkgr s �r � <genexpr>z-install_lib.get_exclusions.<locals>.<genexpr> s\ �� � � �
�
���)�)�&�1�1�
�
� �
�
�
�
�
�
�
�
r )�_get_SVEM_NSPsr �_gen_exclusion_paths�setr �_exclude_pkg_path)r �all_packages�
excl_specss ` r �get_exclusionszinstall_lib.get_exclusions so �� �
�
�
�
��-�-�/�/�
�
�
�� �\�4�+D�+D�+F�+F�G�G�
��7�4�1�:�>�>�?�?�?r c �l � |� d� � |gz }t j j | j g|�R � S )zw
Given a package name and exclusion path within that package,
compute the full exclusion path.
�.)�split�os�path�join�install_dir)r r �exclusion_path�partss r r zinstall_lib._exclude_pkg_path s8 � �
� � �#���.�!1�1���w�|�D�,�5�u�5�5�5�5r c # �P K � | r!| V � | � d� � \ } }}| �dS dS )zn
>>> list(install_lib._all_packages('foo.bar.baz'))
['foo.bar.baz', 'foo.bar', 'foo']
r N)�
rpartition)�pkg_name�sep�childs r r zinstall_lib._all_packages'