관리-도구
편집 파일: install_lib.cpython-311.pyc
� ,�Re# � �^ � 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 ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/command/install_lib.py�runzinstall_lib.run sD � �� � �����<�<�>�>�������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'