Having py2exe include my data files (like include_package_data)

Posted by cool-RR on Stack Overflow See other posts from Stack Overflow or by cool-RR
Published on 2010-04-30T21:36:58Z Indexed on 2010/04/30 21:57 UTC
Read the original article Hit count: 501

I have a Python app which includes non-Python data files in some of its subpackages. I've been using the include_package_data option in my setup.py to include all these files automatically when making distributions. It works well.

Now I'm starting to use py2exe. I expected it to see that I have include_package_data=True and to include all the files. But it doesn't. It puts only my Python files in the library.zip, so my app doesn't work.

How do I make py2exe include my data files?

© Stack Overflow or respective owner

Related posts about python

Related posts about py2exe