관리-도구
편집 파일: install_lib.cpython-312.pyc
� t��e � �` � d dl Z d dlZd dlmZmZ d dlmc mZ G d� dej � Zy)� N)�product�starmapc �^ � e Zd ZdZd� Zd� Zd� Zed� � Zd� Z ed� � Z dd�Zd � Zy )�install_libz9Don't add compiled flags to filenames of non-Python filesc �l � | j � | j � }|�| j |� y y �N)�build�install�byte_compile)�self�outfiless ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/command/install_lib.py�runzinstall_lib.run s/ � �� � ���<�<�>�������h�'� � c � � � � fd�� j � D � }t |� j � � }t t � j |� � S )z� Return a collections.Sized collections.Container of paths to be excluded for single_version_externally_managed installations. c 3 �N �K � | ] }�j |� D ] }|�� � � y �wr )� _all_packages)�.0�ns_pkg�pkgr s �r � <genexpr>z-install_lib.get_exclusions.<locals>.<genexpr> s9 �� �� � ���)�)�&�1� � � � �� �s �"%)�_get_SVEM_NSPsr �_gen_exclusion_paths�setr �_exclude_pkg_path)r �all_packages� excl_specss ` r �get_exclusionszinstall_lib.get_exclusions sJ �� � ��-�-�/� �� �\�4�+D�+D�+F�G� ��7�4�1�1�:�>�?�?r c � � |j d� |gz }t j j | j g|��� 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 s7 � � � � �#��.�!1�1���w�w�|�|�D�,�,�5�u�5�5r c # �J K � | r| �� | j d� \ } }}| r�yy�w)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'