resampy icon indicating copy to clipboard operation
resampy copied to clipboard

Using resampy without numba

Open barracuda156 opened this issue 5 months ago • 4 comments

Is numba optional or hard dependency? If the latter, is it possible to make it optional?

barracuda156 avatar Jul 31 '25 13:07 barracuda156

It is a hard dependency, and no, I don't think we can make it optional.

This package is not really being actively developed at this point (though I do try to keep it maintained). In general, I recommend using soxr or samplerate instead, neither of which have numba dependencies. They do however rely on compiled extensions (C).

bmcfee avatar Jul 31 '25 13:07 bmcfee

Thank you for responding. C is no issue, LLVM is, which makes numba a problem. But apparently resampy is optional for beets, so I can just disable it, if fixing is out of options.

barracuda156 avatar Jul 31 '25 14:07 barracuda156

What about simply upgrading numba to support Python 3.13.5:

https://numba.discourse.group/t/ann-numba-0-61-0-llvmlite-0-44-0/2876

sFritsch09 avatar Aug 08 '25 09:08 sFritsch09

@sFritsch09 That doesn’t resolve the problem at all. (It may be desirable on its own, but unrelated.)

barracuda156 avatar Aug 08 '25 13:08 barracuda156