bg;dZddlZddlmZddlmZddlmZdeefdZ d d eeejfd edeefd Z dS) zLProvides a function to report all internal modules for using freezing tools.N)Iterator)List)UnionreturncFddl}tt|}|S)zVReturn a list of module names used by pytest that should be included by cx_freeze.rN)_pytestlist_iter_all_modules)rresults g/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/_pytest/freeze_support.pyfreeze_includesr s(NNN #G,, - -F Mpackageprefixc#8Kddl}ddl}t|tr|}n|j}|d|jdz}}||gD]G\}}}|r8t|j |||dzD] } || zV @||zVHdS)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', ...] rN.)r) ospkgutil isinstancestr__path____name__ iter_modulesr pathjoin) rrrrr package_path_name is_packagems r r r sIIINNN'3?' #A(83(>f&33TF;;  4  &rw||D$'?'?s SSS ! !qj     !4-       r)r) __doc__typestypingrrrrr ModuleTyper rr r's  c  3(( )  c]      r