403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/setuptools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/setuptools/__pycache__/discovery.cpython-314.pyc
+
�h
S����Rt^RIHt^RIt^RIt^RIHtHtHt^RI	H
t
^RIHt^RIH
t
^RIHtHt^RIt^RIHt^R	IHt^R
IHt]'d^RIHt]P6P8tRR
lt!RR4t!RR4t !RR] 4t!!RR]!4t"!RR] 4t#!RR]"4t$!RR]#4t%RRlt&!RR4t'R R!lt(R"R#lt)R$R%lt*R&R'lt+R(R)lt,R#)*u_Automatic discovery of Python modules and packages (for inclusion in the
distribution) and other config values.

For the purposes of this module, the following nomenclature is used:

- "src-layout": a directory representing a Python project that contains a "src"
  folder. Everything under the "src" folder is meant to be included in the
  distribution when packaging the project. Example::

    .
    ├── tox.ini
    ├── pyproject.toml
    └── src/
        └── mypkg/
            ├── __init__.py
            ├── mymodule.py
            └── my_data_file.txt

- "flat-layout": a Python project that does not use "src-layout" but instead
  have a directory under the project root for each package::

    .
    ├── tox.ini
    ├── pyproject.toml
    └── mypkg/
        ├── __init__.py
        ├── mymodule.py
        └── my_data_file.txt

- "single-module": a project that contains a single Python script direct under
  the project root (no directory used)::

    .
    ├── tox.ini
    ├── pyproject.toml
    └── mymodule.py

)�annotationsN)�Iterable�Iterator�Mapping��fnmatchcase)�glob)�Path)�
TYPE_CHECKING�ClassVar)�StrPath)�log)�convert_path)�Distributionc� �V^8�dQhRRRR/#)��pathr�return�bool�)�formats"�6/usr/lib/python3/dist-packages/setuptools/discovery.py�__annotate__r?s��1�1�g�1�$�1�c�\�\PPV4P4#�N)�osr�basename�isidentifier)rs&r�_valid_namer?s ��
�7�7���D�!�.�.�0�0rc�>�]tRt^DtRtRRltRRltRRltRtR	#)
�_Filterzw
Given a list of patterns, create a callable that will be true only if
the input matches at least one of the patterns.
c� �V^8�dQhRRRR/#)r�patterns�strr�Noner)rs"rr�_Filter.__annotate__Js��1�1�#�1�$�1rc	�:�\PV4VnR#r)�dict�fromkeys�	_patterns)�selfr#s&*r�__init__�_Filter.__init__Js�����x�0��rc� �V^8�dQhRRRR/#�r�itemr$rrr)rs"rrr&Ms��E�E�S�E�T�Erc	�a�\;QJd)V3RlVP4F'gKR#	R#!V3RlVP44#)c3�<<"�TFp\SV4x�K	R#5irr)�.0�patr0s& �r�	<genexpr>�#_Filter.__call__.<locals>.<genexpr>Ns����D�^�c�;�t�S�)�)�^�s�TF)�anyr*�r+r0s&fr�__call__�_Filter.__call__Ms4����s�D�T�^�^�D�s�s�D�s�D�s�D�T�^�^�D�D�Drc� �V^8�dQhRRRR/#r/r)rs"rrr&Ps��&�&��&��&rc	��WP9#r�r*r8s&&r�__contains__�_Filter.__contains__Ps���~�~�%�%rr=N)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r,r9r>�__static_attributes__rrrr!r!Ds���
1�E�&�&rr!c�h�]tRt^Tt$RtR	tR]R&R	tR]R&]RRRll4t	]RRl4t
R	tR
#)�_Finderz@Base class that exposes functionality for module/package finderszClassVar[tuple[str, ...]]�ALWAYS_EXCLUDE�DEFAULT_EXCLUDEc�(�V^8�dQhRRRRRRRR/#)r�wherer�excludez
Iterable[str]�includer�	list[str]r)rs"rr�_Finder.__annotate__[s2�� 
� 
�� 
�� 
��	 
�

� 
rc

���T;'g
VPp\VP\\	V44\.VPOVO5!\V!44#)a�Return a list of all Python items (packages or modules, depending on
the finder implementation) found within directory 'where'.

'where' is the root directory which will be searched.
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 names to exclude; '*' can be used
as a wildcard in the names.
When finding packages, 'foo.*' will exclude all subpackages of 'foo'
(but not 'foo' itself).

'include' is a sequence of names to include.
If it's specified, only the named items will be included.
If it's not specified, all found items will be included.
'include' can contain shell style wildcard patterns just like
'exclude'.
)rI�list�
_find_iterrr$r!rH��clsrKrLrMs&&&&r�find�_Finder.findZsZ��4�0�0�S�0�0����N�N��S��Z�(��6��+�+�6�g�6���!�
�
�	
rc�(�V^8�dQhRRRRRRRR/#�rrKrrLr!rMrz
Iterator[str]r)rs"rrrO~s,��"�"��"�&-�"�8?�"�	�"rc	��\hr)�NotImplementedErrorrSs&&&&rrR�_Finder._find_iter}s
��"�!rrN)�.r)�*)r@rArBrCrDrH�__annotations__rI�classmethodrUrRrErrrrGrGTsB��J�02�N�-�2�13�O�.�3�� 
�� 
�D�"��"rrGc�J�]tRt^�tRtRt]RRl4t]RRl4t	Rt
R#)	�
PackageFinderzA
Generate a list of all Python packages found within a directory
c�(�V^8�dQhRRRRRRRR/#rXr)rs"rr�PackageFinder.__annotate__�s,��!�!��!�&-�!�8?�!�	�!rc#
�0"�\P!\V4RR7F�wrEpVR,p.VR&VF�p\PP	WH4p	\PPW�4p
V
P
\PPR4pRV9gVPW�4'gK�V!V4'dV!V4'gVx�VR2V9gVR2V9dK�VPV4K�	K�	R#5i)za
All the packages found in 'where' that pass the 'include' filter, but
not the 'exclude' filter.
T)�followlinks�NNNr\r]�.*N)
r�walkr$r�join�relpath�replace�sep�_looks_like_package�append)rTrKrLrM�root�dirs�files�all_dirs�dir�	full_path�rel_path�packages&&&&        rrR�PackageFinder._find_iter�s����"$����U���!F��D���A�w�H��D��G����G�G�L�L��3�	��7�7�?�?�9�<��"�*�*�2�7�7�;�;��<���#�:�S�%<�%<�Y�%P�%P���7�#�#�G�G�,<�,<�!�M��Y�a�=�G�+�'��"�~��/H�����C� �' �"G�s�CD�
D�!5Dc�$�V^8�dQhRRRRRR/#)rrr�
_package_namer$rrr)rs"rrrc�s&��A�A�'�A�#�A�$�Arc
�|�\PP\PPVR44#)z%Does a directory look like a package?�__init__.py)rr�isfileri)rrys&&rrm�!PackageFinder._looks_like_package�s&���w�w�~�~�b�g�g�l�l�4��?�@�@rrN)�ez_setupz*__pycache__)r@rArBrCrDrHr_rR�staticmethodrmrErrrrara�s7���2�N��!��!�B�A��Arrac�,�]tRt^�t]RRl4tRtR#)�PEP420PackageFinderc�$�V^8�dQhRRRRRR/#)r�_pathrryr$rrr)rs"rr� PEP420PackageFinder.__annotate__�s!����7��3��4�rc	��R#)Tr)r�rys&&rrm�'PEP420PackageFinder._looks_like_package�s��rrN)r@rArBrCrrmrErrrr�r��s�����rr�c�@�]tRt^�tRt]RRl4t]!]4t	Rt
R#)�ModuleFinderzQFind isolated Python modules.
This function will **not** recurse subdirectories.
c�(�V^8�dQhRRRRRRRR/#rXr)rs"rr�ModuleFinder.__annotate__�s,��
�
��
�&-�
�8?�
�	�
rc#	�d"�\\PPVR44F~p\PP	\PPV44wrVVP
V4'gKZV!V4'gKjV!V4'dKzVx�K�	R#5i)z*.pyN)rrrri�splitextr�_looks_like_module)rTrKrLrM�file�module�_exts&&&&   rrR�ModuleFinder._find_iter�st���������e�V�4�5�D��7�7�+�+�B�G�G�,<�,<�T�,B�C�L�F��)�)�&�1�1���v���w�v�����6�s�BB0�B0�&
B0rN)r@rArBrCrDr_rRrrr�rErrrr�r��s(����
��
�&�k�2�rr�c�\�]tRt^�tRt]!]!R]444t]RRl4t	Rt
R#)�FlatLayoutPackageFinderc#	�."�TFqVR23x�K
	R#5i)rgNr)r3�ps& rr5�!FlatLayoutPackageFinder.<genexpr>�s���&G�h��a�S��8�}�h�s�c�$�V^8�dQhRRRRRR/#)rr�r�package_namer$rrr)rs"rr�$FlatLayoutPackageFinder.__annotate__s&��T�T�7�T�#�T�$�Trc	�*�VPR4pV^,P4;'gV^,PR4pT;'dC\;QJd#RVR,4F'dKR#	R#!RVR,44#)r\�-stubsc3�@"�TFqP4x�K	R#5ir)r)r3�names& rr5�>FlatLayoutPackageFinder._looks_like_package.<locals>.<genexpr>s���(S���):�):�)<�)<��s�:�NNFT)�splitr�endswith�all)r�r��names�root_pkg_is_valids&&  rrm�+FlatLayoutPackageFinder._looks_like_package�su���"�"�3�'��!�!�H�1�1�3�R�R�u�Q�x�7H�7H��7R�� �S�S�S�S�(S��r��(S�S�S�S�S�S�S�(S��r��(S�%S�SrrN)#�ci�bin�debian�doc�docs�
documentation�manpages�news�
newsfragments�	changelog�test�tests�	unit_test�
unit_tests�example�examples�scripts�tools�util�utils�python�build�dist�venv�env�requirements�tasks�fabfile�
site_scons�	benchmark�
benchmarks�exercise�	exercises�htmlcov�[._]*)r@rArBrC�_EXCLUDE�tuple�
chain_iterrIrrmrErrrr�r��s8��'�H�R�J�&G�h�&G�G�H�O� ��T��Trr�c��]tRtRtRtRtR#)�FlatLayoutModuleFinderirN)�setup�conftestr�r�r�r�r��toxfile�noxfile�pavement�dodor�r�z[Ss][Cc]onstruct�	conanfile�manager�r�r�r�r�)r@rArBrCrIrErrrr�r�s���O�4*rr�c�$�V^8�dQhRRRRRR/#)r�root_pkgr$�pkg_dirrrrNr)rs"rrr%s&��B�B�C�B�'�B�i�Brc��\PV4pV.VUu.uFpRPW34NK	up,#uupi)r\)r�rUri)r�r��nested�ns&&  r�_find_packages_withinr�%s<��
 �
%�
%�g�
.�F��:�&�A�&�Q����8�-�0�&�A�A�A��As�Ac���]tRtRtRtRRltRtRt]RRl4t	]R	R
l4t
R%RRlltR
RltRRlt
RRltRRltRRltRRltRRltRRltRRltRR ltR!R"ltR#tR$#)&�ConfigDiscoveryi*z}Fill-in metadata and options that can be automatically derived
(from other metadata/options, the file system or conventions)
c� �V^8�dQhRRRR/#)r�distributionrrr%r)rs"rr�ConfigDiscovery.__annotate__/s��'�'�\�'�d�'rc	�<�WnRVnRVnRVnR#)FN)r��_called�	_disabled�_skip_ext_modules)r+r�s&&rr,�ConfigDiscovery.__init__/s�� �	�������!&��rc
��RVnR#)z+Internal API to disable automatic discoveryTN)r��r+s&r�_disable�ConfigDiscovery._disable5s	����rc
��RVnR#)a�Internal API to disregard ext_modules.

Normally auto-discovery would not be triggered if ``ext_modules`` are set
(this is done for backward compatibility with existing packages relying on
``setup.py`` or ``setup.cfg``). However, ``setuptools`` can call this function
to ignore given ``ext_modules`` and proceed with the auto-discovery if
``packages`` and ``py_modules`` are not given (e.g. when using pyproject.toml
metadata).
TN)r�r�s&r�_ignore_ext_modules�#ConfigDiscovery._ignore_ext_modules9s��"&��rc��V^8�dQhRR/#)rrrr)rs"rrr�Fs��/�/�7�/rc	�^�VPP;'g\P#r)r��src_rootr�curdirr�s&r�	_root_dir�ConfigDiscovery._root_dirEs ���y�y�!�!�.�.�R�Y�Y�.rc��V^8�dQhRR/#)rr�dict[str, str]r)rs"rrr�Ks��%�%�n�%rc	�b�VPPf/#VPP#r)r��package_dirr�s&r�_package_dir�ConfigDiscovery._package_dirJs'���9�9� � �(��I��y�y�$�$�$rc�$�V^8�dQhRRRRRR/#)r�forcerr��ignore_ext_modulesr)rs"rrr�Ps$������)-��JN�rc
��VRJd'VP'gVP'dR#VPV4V'dVP4RVnR#)ayAutomatically discover missing configuration fields
and modifies the given ``distribution`` object in-place.

Note that by default this will only have an effect the first time the
``ConfigDiscovery`` object is called.

To repeatedly invoke automatic discovery (e.g. when the project
directory changes), please use ``force=True`` (or create a new
``ConfigDiscovery`` instance).
FNT)r�r��_analyse_package_layout�analyse_name)r+r�r�r�s&&&&rr9�ConfigDiscovery.__call__PsC���E�>�t�|�|�|�t�~�~�~���$�$�%7�8��������rc� �V^8�dQhRRRR/#�rr�rrr)rs"rrr�gs��
�
��
��
rc
�x�T;'g
VPpVPPRJ;'gT'*pVPPRJ;'g_VPPRJ;'g?T;'g5\VPR4;'dVPP#)zF``True`` if the user has specified some form of package/module listingN�
configuration)r�r��ext_modules�packages�
py_modules�hasattrr)r+r�rs&& r�_explicitly_specified�%ConfigDiscovery._explicitly_specifiedgs���/�I�I�4�3I�3I���9�9�0�0�D�8�N�N�<N�O���I�I���d�*�
(�
(��y�y�#�#�4�/�
(�
(��
(�
(��t�y�y�/�2�(�(��	�	�'�'�	
rc� �V^8�dQhRRRR/#rr)rs"rrr�ts��
�
�$�
�4�
rc	���VPV4'dR#\P!R4VP4;'g)VP	4;'gVP4#)TzLNo `packages` or `py_modules` configuration, performing automatic discovery.)r	r
�debug�_analyse_explicit_layout�_analyse_src_layout�_analyse_flat_layout)r+r�s&&rr��'ConfigDiscovery._analyse_package_layouttsk���%�%�&8�9�9���	�	�
#�	
�
�)�)�+�
+�
+��'�'�)�
+�
+��(�(�*�		
rc��V^8�dQhRR/#�rrrr)rs"rrr��s����$�rc
�a�VPP4pVPRR4VPoV'gR#\P
!RV24\
V3RlVP444p\V4VPn
\P
!RVPP24R#)zAThe user can explicitly give a package layout via ``package_dir``�NFz(`explicit-layout` detected -- analysing c3�|<"�TF1wr\V\PPSV44x�K3	R#5ir)r�rrri)r3�pkg�
parent_dir�root_dirs&  �rr5�;ConfigDiscovery._analyse_explicit_layout.<locals>.<genexpr>�s3����
�#6���
"�#�r�w�w�|�|�H�j�'I�J�J�#6�s�9<�discovered packages -- T)r��copy�popr�r
r
r��itemsrQr�r)r+r��pkgsrs&  @rr�(ConfigDiscovery._analyse_explicit_layout�s�����'�'�,�,�.������D�!��>�>�����	�	�<�[�M�J�K��
�#.�#4�#4�#6�
�
��"�$�Z��	�	���	�	�+�D�I�I�,>�,>�+?�@�A�rc��V^8�dQhRR/#rr)rs"rrr��s����T�rc
���VPp\PPVPVPRR44p\PP
V4'gR#\P!RV24VPR\PPV44WPn\PV4VPn\ PV4VPn\P!RVPP24\P!RVPP"24R#)avTry to find all packages or modules under the ``src`` directory
(or anything pointed by ``package_dir[""]``).

The "src-layout" is relatively safe for automatic discovery.
We assume that everything within is meant to be included in the
distribution.

If ``package_dir[""]`` is not given, but the ``src`` directory exists,
this function will set ``package_dir[""] = "src"``.
r�srcFz#`src-layout` detected -- analysing r�discovered py_modules -- T)r�rrrir��get�isdirr
r
�
setdefaultrr�r�r�rUrr�r)r+r��src_dirs&  rr�#ConfigDiscovery._analyse_src_layout�s����'�'���'�'�,�,�t�~�~�{���r�5�/I�J���w�w�}�}�W�%�%���	�	�7��y�A�B����r�2�7�7�#3�#3�G�#<�=� +�	�	��0�5�5�g�>��	�	��+�0�0��9��	�	���	�	�+�D�I�I�,>�,>�+?�@�A��	�	�-�d�i�i�.B�.B�-C�D�E�rc��V^8�dQhRR/#rr)rs"rrr��s��M�M�d�Mrc
��\P!RVP24VP4;'gVP	4#)a�Try to find all packages and modules under the project root.

Since the ``flat-layout`` is more dangerous in terms of accidentally including
extra files/directories, this function is more conservative and will raise an
error if multiple packages or modules are found.

This assumes that multi-package dists are uncommon and refuse to support that
use case in order to be able to prevent unintended errors.
z$`flat-layout` detected -- analysing )r
r
r��_analyse_flat_packages�_analyse_flat_modulesr�s&rr�$ConfigDiscovery._analyse_flat_layout�s=��	�	�	�8����8H�I�J��*�*�,�L�L��0J�0J�0L�Lrc��V^8�dQhRR/#rr)rs"rrr��s�����rc	�B�\PVP4VPn\\
VPP44p\P!RVPP24VPVR4\V4#)rr)r�rUr�r�r�remove_nested_packages�remove_stubsr
r
�_ensure_no_accidental_inclusionr)r+�	top_levels& rr,�&ConfigDiscovery._analyse_flat_packages�so��4�9�9�$�.�.�I��	�	��*�<��	�	�8J�8J�+K�L�	��	�	�+�D�I�I�,>�,>�+?�@�A��,�,�Y�
�C��I��rc��V^8�dQhRR/#rr)rs"rrr��s��*�*�t�*rc	�B�\PVP4VPn\
P!RVPP24VPVPPR4\VPP4#)r$�modules)	r�rUr�r�rr
r
r3rr�s&rr-�%ConfigDiscovery._analyse_flat_modules�sk��5�:�:�4�>�>�J��	�	���	�	�-�d�i�i�.B�.B�-C�D�E��,�,�T�Y�Y�-A�-A�9�M��D�I�I�(�(�)�)rc� �V^8�dQhRRRR/#)r�detectedrN�kindr$r)rs"rrr��s��7�7�	�7��7rc	�r�\V4^8�d'^RIHp^RIHpRVRVRVR2pV!V!V44hR#)r�)�cleandoc)�PackageDiscoveryErrorzMultiple top-level z discovered in a flat-layout: z�.

            To avoid accidental inclusion of unwanted files or directories,
            setuptools will not proceed with this build.

            If you are trying to create a single distribution with multiple a�
            on purpose, you should not rely on automatic discovery.
            Instead, consider the following options:

            1. set up custom discovery (`find` directive with `include` or `exclude`)
            2. use a `src-layout`
            3. explicitly set `py_modules` or `packages` with a list of names

            To find more information, look for "package discovery" on setuptools docs.
            N)�len�inspectr>�setuptools.errorsr?)r+r;r<r>r?�msgs&&&   rr3�/ConfigDiscovery._ensure_no_accidental_inclusion�sU���x�=�1��(�?�)�$��/M�h�Z�XM�
NR�F�	S
��C�(���
�6�6�)rc��V^8�dQhRR/#)rrr%r)rs"rrr��s��+�+�d�+rc
�R�VPPP'gVPP'dR#\P!R4VP4;'gVP
4pV'dWPPnR#R#)z�The packages/modules are the essential contribution of the author.
Therefore the name of the distribution can be derived from them.
Nz7No `name` configuration, performing automatic discovery)r��metadatar�r
r
�#_find_name_single_package_or_module�_find_name_from_packages)r+r�s& rr��ConfigDiscovery.analyse_name�sy���9�9���"�"�"�d�i�i�n�n�n���	�	�K�L�
�4�4�6�
/�
/��,�,�.�	
��&*�I�I���#�rc��V^8�dQhRR/#�rr�
str | Noner)rs"rrr��s����Z�rc
���RFip\VPVR4;'g.pV'gK.\V4^8XgK@\P!RV^,24V^,u#	R#)zExactly one module or packageNz&Single module/package detected, name: )rr)�getattrr�r@r
r
)r+�fieldrs&  rrH�3ConfigDiscovery._find_name_single_package_or_module�s[��/�E��D�I�I�u�d�3�9�9�r�E��u��U��q���	�	�B�5��8�*�M�N��Q�x��	0�rc��V^8�dQhRR/#rLr)rs"rrr��s����*�rc
�|�VPP'gR#\\VPP\R74pVPP
;'g/p\
WVP4pV'd\P!RV24V#\P!R4R#)z<Try to find the root package that is not a PEP 420 namespaceN��keyz&Common parent package detected, name: z7No parent package detected, impossible to derive `name`)r�rr2�sortedr@r��find_parent_packager�r
r
�warn)r+rr��
parent_pkgs&   rrI�(ConfigDiscovery._find_name_from_packages�s����y�y�!�!�!����t�y�y�'9�'9�s� C�D���i�i�+�+�1�1�r��(�����O�
���I�I�>�z�l�K�L������J�K�r)r�r�r�r�N)FTF)r@rArBrCrDr,r�r��propertyr�r�r9r	r�rrrr,r-r3r�rHrIrErrrr�r�*s����'��
&��/��/��%��%�
�.
�
�$�$�2M��*�7�.+�"��rr�c� �V^8�dQhRRRR/#�rrrNrr)rs"rrrs����Y��9�rc�Na�\V\R7pVR,p\V4p\\V44Ffwpo\;QJdV3RlV4F'gKRM	RM!V3RlV44'gKHVPW4,
^,
4Kh	V#)z�Remove nested packages from a list of packages.

>>> remove_nested_packages(["a", "a.b1", "a.b2", "a.b1.c1"])
['a']
>>> remove_nested_packages(["a", "b", "c.d", "c.d.e.f", "g.h", "a.a1"])
['a', 'b', 'c.d', 'g.h']
rTrfc3�L<"�TFpSPVR24x�K	R#5i�r\N��
startswith)r3�otherr�s& �rr5�)remove_nested_packages.<locals>.<genexpr>s#����C���t���%���{�+�+��s�!$TF)rVr@�	enumerate�reversedr7r)rrr4�size�ir�s&    @rr1r1su����(��$�D��Q��I��t�9�D��X�d�^�,���4��3�C��C�3�3�3�C��C�C�C��M�M�$�(�Q�,�'�-��rc� �V^8�dQhRRRR/#r]r)rs"rrr s��Q�Q�9�Q��Qrc��VUu.uF3qPR4^,PR4'dK1VNK5	up#uupi)z�Remove type stubs (:pep:`561`) from a list of packages.

>>> remove_stubs(["a", "a.b", "a-stubs", "a-stubs.b.c", "b", "c-stubs"])
['a', 'a.b', 'b']
r\r�)r�r�)rrs& rr2r2 s6��$�P�8�C�9�9�S�>�!�+<�+E�+E�h�+O�C�C�8�P�P��Ps
�.A�Ac�(�V^8�dQhRRRRRRRR/#)	rrrNr��Mapping[str, str]rrrrMr)rs"rrr)s,������&7��CJ���rc��a�\V\R7p.p\V4Fkwpo\;QJd(V3RlW^,R4F'dKRM	RM!V3RlW^,R44'gMVP	S4Km	VFXo\SW4p\PPVR4p\PPV4'gKVSu#	R#)z0Find the parent package that is not a namespace.rTc3�J<"�TFqPSR24x�K	R#5ir`ra)r3r�r�s& �rr5�&find_parent_package.<locals>.<genexpr>0s#����G�5F��<�<�4�&��
�+�+�5F�s� #NFTr{)
rVr@rer�rn�find_package_pathrrrir|)rr�r�common_ancestorsrh�pkg_path�initr�s&&&    @rrWrW)s�����h�C�(�H����X�&���4��s�G�X�!�e�g�5F�G�s�s�s�G�X�!�e�g�5F�G�G�G�

�����%�'�!��$�T�;�A���w�w�|�|�H�m�4��
�7�7�>�>�$����K�	!�rc�(�V^8�dQhRRRRRRRR/#)rr�r$r�rlrrrr)rs"rrrAs,��>�>�

�>�-�>�9@�>��>rc��VPR4p\\V4^R4FKpRPVRV4pWQ9gKW,p\P
P!W&.W4RO5!u#	VP
R4;'gRp\P
P!V.VPR4OVO5!#)a_Given a package name, return the path where it should be found on
disk, considering the ``package_dir`` option.

>>> path = find_package_path("my.pkg", {"": "root/is/nested"}, ".")
>>> path.replace(os.sep, "/")
'./root/is/nested/my/pkg'

>>> path = find_package_path("my.pkg", {"my": "root/is/nested"}, ".")
>>> path.replace(os.sep, "/")
'./root/is/nested/pkg'

>>> path = find_package_path("my.pkg", {"my.pkg": "root/is/nested"}, ".")
>>> path.replace(os.sep, "/")
'./root/is/nested'

>>> path = find_package_path("other.pkg", {"my.pkg": "root/is/nested"}, ".")
>>> path.replace(os.sep, "/")
'./other/pkg'
r\Nr�/���)r��ranger@rirrr%)r�r�r�partsrh�partial_name�parents&&&    rrprpAs���,
�J�J�s�O�E�
�3�u�:�q�"�
%���x�x��b�q�	�*���&� �.�F��7�7�<�<��=�5��9�=�=�&��_�_�R�
 �
&�
&�B�F�
�7�7�<�<��=�6�<�<��#4�=�u�=�=rc�$�V^8�dQhRRRRRR/#)rrrN�package_pathrrr�r)rs"rrrcs&��N�N�I�N�W�N��Nrc
��\V4p\V4PpVUu/uF'qDRP.VOVP	R4O4bK)	up#uupi)rvr\)r1r	ryrir�)rr}�parent_pkgs�prefixrs&&   r�construct_package_dirr�csS��(��2�K�
�,�
�
%�
%�F�AL�M��#����4�F�4�S�Y�Y�s�^�4�5�5��M�M��Ms�-A)-rD�
__future__r�	itertoolsr�collections.abcrrr�fnmatchrr�pathlibr	�typingr
r�_distutils_hack.override�_distutils_hackr�r�	distutilsr
�distutils.utilr�
setuptoolsr�chain�
from_iterabler�rr!rGrar�r�r�r�r�r�r1r2rWrpr�rrr�<module>r�s���%�N#��	�7�7����*����'��'�
�_�_�
*�
*�
�1�

&�
&� -"�-"�`,A�G�,A�^�-��3�7�3�22T�1�2T�j*�\�*�<B�
a�a�H�$Q��0>�DNr

Youez - 2016 - github.com/yon3zu
LinuXploit