File: //lib/python3/dist-packages/setuptools/__pycache__/__init__.cpython-310.pyc
o
    �_�a  �                   @   s>  d Z ddlmZ ddlZddlZddlZddlZddlZ	ddl
mZ ddlm
Z
 ddlmZ ddlZddlmZ dd	lmZ dd
lmZ ddlmZ g d�ZejjZdZG d
d� d�ZG dd� de�Zej Z!ej Z"dd� Z#dd� Z$e	j%j$j e$_ e�&e	j%j'�Z(G dd� de(�Z'dd� Z)ej*fdd�Z+G dd� de,�Z-e�.�  dS )z@Extensions to the 'distutils' for large or complex distributions�    ��fnmatchcaseN)�DistutilsOptionError)�convert_path�   )�SetuptoolsDeprecationWarning)�	Extension)�Distribution)�Require)�monkey)�setupr	   �Commandr   r
   r   �
find_packages�find_namespace_packagesc                   @   sB   e Zd ZdZeddd��Zedd� �Zed	d
� �Zedd� �Z	d
S )�
PackageFinderzI
    Generate a list of all Python packages found within a directory
    �.� ��*c                 C   s,   t | �t|�| jddg|�R � | j|� ��S )a	  Return a list all Python packages found within directory 'where'
        'where' is the root directory which will be searched for packages.  It
        should be supplied as a "cross-platform" (i.e. URL-style) path; it will
        be converted to the appropriate local path syntax.
        'exclude' is a sequence of package names to exclude; '*' can be used
        as a wildcard in the names, such that 'foo.*' will exclude all
        subpackages of 'foo' (but not 'foo' itself).
        'include' is a sequence of package names to include.  If it's
        specified, only the named packages will be included.  If it's not
        specified, all found packages will be included.  'include' can contain
        shell style wildcard patterns just like 'exclude'.
        �ez_setupz*__pycache__)�list�_find_packages_iterr   �
_build_filter)�cls�where�exclude�includer   r   �5/usr/lib/python3/dist-packages/setuptools/__init__.py�find,   s   ��zPackageFinder.findc                 c   s�   � t j|dd�D ]F\}}}|dd� }g |dd�<