#115 Py2exe doesn't respect the distutils package_data option

open
nobody
None
5
2010-01-11
2010-01-11
pachiburke
No

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.

Discussion

  • pachiburke
    pachiburke
    2010-01-13

    This could at least be useful when the skip_archive option is set to true, as I can see how accessing package data in a library.zip file transparently would mean modifying the file system layer.