Skip to content

Commit

Permalink
Fix numba version deprecation warning (#1118)
Browse files Browse the repository at this point in the history
* Fix numba version parsing

* I think this is actually the bug

* Revert "I think this is actually the bug"

This reverts commit 655c6d0.

* packaging dependency

* Update setup.py
  • Loading branch information
levkk committed May 19, 2020
1 parent 9b95e0f commit 4a69516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion librosa/util/decorators.py
Expand Up @@ -4,9 +4,10 @@
'''Helpful tools for deprecation'''

import warnings
from packaging import version
from decorator import decorator
import numba
if (numba.__version__ < '0.49.0'):
if version.parse(numba.__version__) < version.parse('0.49.0'):
from numba.decorators import jit as optional_jit
else:
from numba.core.decorators import jit as optional_jit
Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -38,6 +38,7 @@
install_requires=[
'audioread >= 2.0.0',
'numpy >= 1.15.0',
'packaging >= 18',
'scipy >= 1.0.0',
'scikit-learn >= 0.14.0, != 0.19.0',
'joblib >= 0.14',
Expand Down

0 comments on commit 4a69516

Please sign in to comment.