def package_data(pkg, roots):
data = []<EOL>for root in roots:<EOL><INDENT>for dirname, _, files in os.walk(os.path.join(pkg, root)):<EOL><INDENT>for fname in files:<EOL><INDENT>data.append(os.path.relpath(os.path.join(dirname, fname), pkg))<EOL><DEDENT><DEDENT><DEDENT>return {pkg: data}<EOL>
Generic function to find package_data.

    All of the files under each of the `roots` will be declared as package
    data for package `pkg`.