Having py2exe include my data files (like include_package_data)

前端 未结 4 1777
予麋鹿
予麋鹿 2021-01-14 05:07

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

4条回答
  •  猫巷女王i
    2021-01-14 05:31

    I ended up solving it by giving py2exe the option skip_archive=True. This caused it to put the Python files not in library.zip but simply as plain files. Then I used data_files to put the data files right inside the Python packages.

提交回复
热议问题