def find_package_data(packages):
package_data = {}<EOL>for package in packages:<EOL><INDENT>package_data[package] = []<EOL>for subdir in find_subdirectories(package):<EOL><INDENT>if '<STR_LIT:.>'.join((package, subdir)) in packages: <EOL><INDENT>logging.debug("<STR_LIT>" % (package, subdir))<EOL>continue<EOL><DEDENT>if skip_tests and (subdir == '<STR_LIT>'): <EOL><INDENT>logging.debug("<STR_LIT>" % (package, subdir))<EOL>continue<EOL><DEDENT>package_data[package] += subdir_findall(package_to_path(package), subdir)<EOL><DEDENT><DEDENT>return package_data<EOL>
For a list of packages, find the package_data

This function scans the subdirectories of a package and considers all
non-submodule subdirectories as resources, including them in
the package_data

Returns a dictionary suitable for setup(package_data=<result>)