j7iFdZddlmZddlmZddlZddZ d d dZy) zLProvides a function to report all internal modules for using freezing tools.) annotations)IteratorNc6ddl}tt|}|S)zVReturn a list of module names used by pytest that should be included by cx_freeze.rN)_pytestlist_iter_all_modules)rresults _/mnt/ssd/data/python-lab/ChefSystem/venv/lib/python3.12/site-packages/_pytest/freeze_support.pyfreeze_includesr s #G, -F Mc#8Kddl}ddl}t|tr|}n |j}|d|j dz}}|j |gD]F\}}}|r7t|jj|||dzD] } || z @||zHyw)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.)prefix) ospkgutil isinstancestr__path____name__ iter_modulesrpathjoin) packagerrrr package_path_name is_packagems r rrs'3'' #A(8(83(>f&33TF; 4 &rww||D$'?s S !qj  !4-   sBB)returnz list[str]))rzstr | types.ModuleTyperrrz Iterator[str])__doc__ __future__rcollections.abcrtypesr rr r r&s> #$  #   r