HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/1233/cwd/lib/python3/dist-packages/setuptools/__pycache__/__init__.cpython-312.pyc
�

�_�a��>�dZddlmZddlZddlZddlZddlZddlZ	ddl
mZddlm
Z
ddlmZddlZddlmZdd	lmZdd
lmZddlmZgd�Zej6j8ZdZGd
�d�ZGd�de�Zej@Z!ej@Z"d�Z#d�Z$e	jJjHje$_ejLe	jJjN�Z(Gd�de(�Z'd�Z)ejTfd�Z+Gd�de,�Z-ej\�y)z@Extensions to the 'distutils' for large or complex distributions���fnmatchcaseN)�DistutilsOptionError)�convert_path�)�SetuptoolsDeprecationWarning)�	Extension)�Distribution)�Require)�monkey)�setupr
�Commandr	rr�
find_packages�find_namespace_packagesc�R�eZdZdZedd��Zed��Zed��Zed��Z	y)�
PackageFinderzI
    Generate a list of all Python packages found within a directory
    c	��t|jt|�|jddg|���|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�includes    �5/usr/lib/python3/dist-packages/setuptools/__init__.py�findzPackageFinder.find,sN��$��#�#��U�#�!��!�!�*�n�G�w�G�!��!�!�7�+�
�
�	
�c#�K�tj|d��D]�\}}}|dd}g|dd|D]�}tjj||�}	tjj	|	|�}
|
jtjjd�}d|vs|j|	�s��||�r||�s|��|j|�����y�w)zy
        All the packages found in 'where' that pass the 'include' filter, but
        not the 'exclude' filter.
        T��followlinksN�.)	�os�walk�path�join�relpath�replace�sep�_looks_like_package�append)rrrr�root�dirs�files�all_dirs�dir�	full_path�rel_path�packages            rrz!PackageFinder._find_packages_iterFs�����"$����D�!A��D�$���A�w�H��D��G����G�G�L�L��s�3�	��7�7�?�?�9�e�<��"�*�*�2�7�7�;�;��<���#�:�S�%<�%<�Y�%G���7�#�G�G�,<�!�M����C� � �"B�s�CCc�|�tjjtjj|d��S)z%Does a directory look like a package?z__init__.py)r#r%�isfiler&�r%s rr*z!PackageFinder._looks_like_packagebs&���w�w�~�~�b�g�g�l�l�4��?�@�@rc����fd�S)z�
        Given a list of patterns, return a callable that will be true only if
        the input matches at least one of the patterns.
        c�.���t�fd��D��S)Nc3�8�K�|]}t�|�����y�w))�patNr)�.0r:�names  �r�	<genexpr>z@PackageFinder._build_filter.<locals>.<lambda>.<locals>.<genexpr>ms�����O�h�s��D�c� :� :�h�s�)�any)r<�patternss`�r�<lambda>z-PackageFinder._build_filter.<locals>.<lambda>ms���C�O�h�O�Or�)r?s`rrzPackageFinder._build_filtergs���P�OrN)r"rA)�*)
�__name__�
__module__�__qualname__�__doc__�classmethodrr�staticmethodr*rrArrrr's[����
��
�2�!��!�6�A��A��P��Prrc��eZdZed��Zy)�PEP420PackageFinderc��y)NTrAr6s rr*z'PEP420PackageFinder._looks_like_packageqs��rN)rCrDrErHr*rArrrJrJps�����rrJc���Gd�dtjj�}||�}|jd��|jr|j|j�yy)Nc��eZdZdZd�Zd�Zy)�4_install_setup_requires.<locals>.MinimalDistributionzl
        A minimal version of a distribution for supporting the
        fetch_build_eggs interface.
        c��d}t|�t|�zD�cic]}|||��
}}tjjj	||�ycc}w)N)�dependency_links�setup_requires)�set�	distutils�corer
�__init__)�self�attrs�_incl�k�filtereds     rrUz=_install_setup_requires.<locals>.MinimalDistribution.__init__�sR��8�E�-0��Z�#�e�*�-D�E�-D���5��8��-D�H�E��N�N�'�'�0�0��x�@��Fs�
Ac��y)zl
            Disable finalize_options to avoid building the working set.
            Ref #2158.
            NrA)rVs r�finalize_optionszE_install_setup_requires.<locals>.MinimalDistribution.finalize_options�s�rN)rCrDrErFrUr\rArr�MinimalDistributionrN}s��	�
	A�
	rr]T)�ignore_option_errors)rSrTr
�parse_config_filesrQ�fetch_build_eggs)rWr]�dists   r�_install_setup_requiresrbzsY���i�n�n�9�9��"�u�%�D�	�����6�������d�1�1�2�rc�V�t|�tjjdi|��S)NrA)rbrSrTr
)rWs rr
r
�s"���E�"��>�>���(�%�(�(rc�D�eZdZejZdZd�Zdd�Zd�Zdd�Z	y)	rFc�d�tj||�t|�j|�y)zj
        Construct the command for dist, updating
        vars(self) with any keyword parameters.
        N)�_CommandrU�vars�update)rVra�kws   rrUzCommand.__init__�s&��
	���$��%��T�
���"�rNc	��t||�}|�t|||�|St|t�st	d|�d|�d|�d���|S)N�'z' must be a z (got `z`))�getattr�setattr�
isinstance�strr)rV�option�what�default�vals     r�_ensure_stringlikezCommand._ensure_stringlike�sL���d�F�#���;��D�&�'�*��N��C��%�&�28�$��D��
��
rc��t||�}|�yt|t�r"t||t	j
d|��yt|t�rtd�|D��}nd}|std|�d|�d���y)z�Ensure that 'option' is a list of strings.  If 'option' is
        currently a string, we split it either on /,\s*/ or /\s+/, so
        "foo bar baz", "foo,bar,baz", and "foo,   bar baz" all become
        ["foo", "bar", "baz"].
        Nz,\s*|\s+c3�<K�|]}t|t����y�w�N)rnro)r;�vs  rr=z-Command.ensure_string_list.<locals>.<genexpr>�s����9�S���A�s�+�S�s�Frkz!' must be a list of strings (got �))	rlrnrorm�re�splitr�allr)rVrprs�oks    r�ensure_string_listzCommand.ensure_string_list�su���d�F�#���;��
��S�
!��D�&�"�(�(�;��"<�=��#�t�$��9�S�9�9�����*�AG��M���rc�h�tj|||�}t|�j|�|Srw)rf�reinitialize_commandrgrh)rV�command�reinit_subcommandsri�cmds     rr�zCommand.reinitialize_command�s.���+�+�D�'�;M�N���S�	������
rrw)r)
rCrDrErfrF�command_consumes_argumentsrUrtr~r�rArrrr�s'�����G�!&���	��*rrc��d�tj|d��D�}ttjj|�S)z%
    Find all files under 'path'
    c3�rK�|]/\}}}|D]$}tjj||����&�1y�wrw)r#r%r&)r;�baser-r.�files     rr=z#_find_all_simple.<locals>.<genexpr>�s;�����!@��D�$���D�	�����T�4� ��	!�!@�s�57Tr )r#r$�filterr%r5)r%�resultss  r�_find_all_simpler��s3���!#����4�!@��G�
�"�'�'�.�.�'�*�*rc���t|�}|tjk(r;tjtj
j|��}t||�}t|�S)z�
    Find all files under 'dir' and return the list of full filenames.
    Unless dir is '.', return full filenames with dir prepended.
    )�start)	r�r#�curdir�	functools�partialr%r'�mapr)r0r.�make_rels   r�findallr��sJ��

�S�!�E�
�b�i�i���$�$�R�W�W�_�_�C�@���H�e�$����;�rc��eZdZdZy)�sicz;Treat this string as-is (https://en.wikipedia.org/wiki/Sic)N)rCrDrErFrArrr�r��s��Err�)/rF�fnmatchrr�r#rz�_distutils_hack.override�_distutils_hack�distutils.corerS�distutils.errorsr�distutils.utilr�_deprecation_warningr�setuptools.version�
setuptools�setuptools.extensionr	�setuptools.distr
�setuptools.dependsr�r�__all__�version�__version__�bootstrap_install_fromrrJrrrrbr
rT�
get_unpatchedrrfr�r�r�ror��	patch_allrArr�<module>r�s��F���	�	���1�'�>��*�(�&��	��� � �,�,����FP�FP�R�-���"�"�
�-�2�2��3�8)����$�$�,�,��
� �6���	��� 6� 6�7��0�h�0�f	+��	�	�	�F�#�F�
����r