Folder _soundfile_data is not created using cx_freeze
Hi, I'm packaging my application using cx_freeze on win10. Even though I specify that the soundfile package should be included, the folder _soundfile_data (including the corresponding libsndfile64bit.dll) is not created.
A'm I missing an important configuration? This is my setup.py
import sys
from cx_Freeze import setup, Executable
build_exe_options = {"packages": ["os", "soundfile"], "excludes": []}
base = None
setup( name = "guifoo",
version = "0.1",
description = "My GUI application!",
options = {"build_exe": build_exe_options},
executables = [Executable("main_12.py", base=base)])
There was some activity regarding cx_freeze in https://github.com/bastibe/python-soundfile/pull/192. Perhaps the discussion there can help you.
We are using poetry to add soundfile as a dependency for our project. But while installing it does not create the _soundfile_data folder as mentioned in the above description. What can be the issue here?
EDIT:
I checked the setup.py file for soundfile. Aren't we missing include_package_data=True?
I don't think include_package_data is the issue here. I seem to remember that we had used that in an earlier version, but it caused problems. Skimming over this sounds extremely familiar.
Note that _soundfile_data is only provided on Windows and macOS. Linux users should just install libsndfile using their package manager.