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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…