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

A way to specify the soundfile.dylib location?

Open peircej opened this issue 6 years ago • 0 comments

t would be nice to be able to specify the location of the soundfile dylib for people that want to use a specific location and/or version. At present the code just uses whatever ctypes find_library discovers or reverts to the provided _soundfile_data folder.

Downsides:

  1. it's often unnecessary to provide soundfile (at least on *nix systems)
  2. this isn't the location that the rest of the OS expects things. That causes problems for packaging the lib into an app. For example to wrap soundfile up into an application bundle on Mac (e.g. py2app) the dylib files really should go into the Contents/Frameworks folder. If the app is going to be code-signed to verify it was from a trusted developer then the dylibs MUST go into the frameworks folder

I wonder if we could have something like a check for an environment variable first, like os.environ['SF_SOUNDFILE'] ?

peircej avatar Apr 04 '18 13:04 peircej