Py2exe doesn't honor the standard distutils package_data option and files listed in it are not bundled.
Users are forced either to use the working data_files option, which is indeed honored, or copy the package_data contents in it.
These are not good solutions as package_data has a more precise meaning, being used for package specific data which is needed by the package to work, while data_files can contain everything else. Also, as other distribution formats respect the option supporting package_data would avoid having py2exe specific hacks.
Log in to post a comment.