Skip to content

Commit

Permalink
fix anti-bloat setting
Browse files Browse the repository at this point in the history
  • Loading branch information
takana-v committed Nov 10, 2023
1 parent e160e78 commit d571675
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions nuitka-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,8 @@
anti-bloat:
- description: 'remove numba dependency'
replacements_plain:
'import numba': ''
'@numba.jit': '#'
'@numba.stencil': '#'
'import numba': |
class numba:
@classmethod
def guvectorize(cls, *args, **kwargs):
return lambda f: f
@classmethod
def vectorize(cls, *args, **kwargs):
return lambda f: f

- module-name: 'librosa.util.matching'
anti-bloat:
Expand All @@ -49,10 +40,7 @@
- description: 'remove numba dependency'
replacements_plain:
'@jit': '#'
'@stencil': ''
'from numba import jit, stencil, guvectorize': |
def guvectorize(*args, **kwargs):
return lambda f: f
'from numba import jit': ''

- module-name: 'librosa.core.spectrum'
anti-bloat:
Expand All @@ -68,17 +56,6 @@
'from numba import jit': ''
'@jit': '#'

- module-name: 'librosa.core.pitch'
anti-bloat:
- description: 'remove numba dependency'
replacements_plain:
'@numba.stencil': '#'
'import numba': |
class numba:
@classmethod
def guvectorize(cls, *args, **kwargs):
return lambda f: f
- module-name: 'librosa.sequence'
anti-bloat:
- description: 'remove numba dependency'
Expand All @@ -93,13 +70,6 @@
'from numba import jit': ''
'@jit': '#'

- module-name: 'librosa.core.notation'
anti-bloat:
- description: 'remove numba dependency'
replacements_plain:
'from numba import jit': ''
'@jit': '#'

- module-name: 'resampy.interpn'
anti-bloat:
- description: 'remove numba dependency'
Expand Down

0 comments on commit d571675

Please sign in to comment.