python-soundfile icon indicating copy to clipboard operation
python-soundfile copied to clipboard

Folder _soundfile_data is not created using cx_freeze

Open padmalcom opened this issue 4 years ago • 3 comments

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)])

padmalcom avatar Mar 31 '21 10:03 padmalcom

There was some activity regarding cx_freeze in https://github.com/bastibe/python-soundfile/pull/192. Perhaps the discussion there can help you.

bastibe avatar Mar 31 '21 16:03 bastibe

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?

debakarr avatar Jul 27 '21 11:07 debakarr

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.

bastibe avatar Jul 28 '21 14:07 bastibe