:Q= d Z ddlZddlmZ ddlmZ ddlmZ dee fdZ dd eeej f d
edee fdZ dS )
zLProvides a function to report all internal modules for using freezing
tools. N)Iterator)List)Unionreturnc F ddl } t t | }|S )zVReturn a list of module names used by pytest that should be
included by cx_freeze.r N)_pytestlist_iter_all_modules)r results h/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/_pytest/freeze_support.pyfreeze_includesr
s( NNN
#G,,
-
-FM packageprefixc # 8 K ddl }ddl}t | t r| }n| j }|d | j dz }}| |g D ]G\ }}}|r8t |j || |dz D ] } || z V
@||z V HdS )zIterate over the names of all modules that can be found in the given
package, recursively.
>>> import _pytest
>>> list(_iter_all_modules(_pytest))
['_pytest._argcomplete', '_pytest._code.code', ...]
r N.)r )
ospkgutil
isinstancestr__path____name__iter_modulesr
pathjoin)
r r r r r package_path_name
is_packagems
r r
r
s IIINNN'3 ? '#A(83(>f&33TF;; 4 &rw||D$'?'?s
SSS
!
!qj
! 4- r )r )
__doc__typestypingr r r r r
ModuleTyper
r r