o Xai @ sF d Z ddlmZ ddlZddlZddlZddlZddlZddl Z ddlmZ ddl mZ ddlmZ ddlZddlmZ dd lmZ dd lmZ ddlmZ g dZejjZdZG d d dZG dd deZ ej!Z"e j!Z#dd Z$dd Z%e j&j%j e%_ e'e j&j(Z)G dd de)Z(dd Z*ej+fddZ,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_packagesfind_namespace_packagesc @ sB e Zd ZdZedddZedd 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'. Zez_setupz*__pycache__)list_find_packages_iterr _build_filter)clswhereexcludeincluder r /builddir/build/BUILDROOT/alt-python310-setuptools-58.3.0-4.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/setuptools/__init__.pyfind- s zPackageFinder.findc c s t j|ddD ]F\}}}|dd }g |dd<