Open BenjaminHalko opened 6 months ago
Thanks, but pkg_resources is still used to get the default SF2 path: https://github.com/craffel/pretty-midi/blob/280352a75c53901eb9b0e4f4dffa416ad041fa33/pretty_midi/fluidsynth.py#L52 That would need to be fixed (and we'd need to verify that, after applying this PR, the library could be installed with the default SF2 in place and usable by the fluidsynth code).
pkg_resources
is depreciated in Python 3.12. This PR replaces it withimportlib.resources
.