From d571675f81b1d3b7c4592a8d6e142d39eb576ae2 Mon Sep 17 00:00:00 2001 From: takana-v <44311840+takana-v@users.noreply.github.com> Date: Sat, 11 Nov 2023 01:52:27 +0900 Subject: [PATCH] fix anti-bloat setting --- nuitka-config.yaml | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/nuitka-config.yaml b/nuitka-config.yaml index 472a21e..11c5f9a 100644 --- a/nuitka-config.yaml +++ b/nuitka-config.yaml @@ -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: @@ -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: @@ -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' @@ -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'