diff --git a/nuitka/plugins/standard/standard.nuitka-package.config.yml b/nuitka/plugins/standard/standard.nuitka-package.config.yml index 96a1375de5..9479cba891 100644 --- a/nuitka/plugins/standard/standard.nuitka-package.config.yml +++ b/nuitka/plugins/standard/standard.nuitka-package.config.yml @@ -1129,6 +1129,14 @@ patterns: - '*.pem' +- module-name: 'mpmath' + anti-bloat: + - description: 'remove pytest reference' + change_function: + 'doctests': 'un-callable' + 'runtests': 'un-callable' + when: 'not use_pytest' + - module-name: 'nacl._sodium' implicit-imports: - depends: @@ -1688,6 +1696,7 @@ change_function: 'test_pandas_friendly_reshape': 'un-callable' 'test_wide_dtype_for_and_widen': 'un-callable' + when: 'not use_pytest' - module-name: 'pendulum' data-files: @@ -3299,6 +3308,26 @@ dirs: - 'vendor' +- module-name: 'sympy.interactive.printing' + anti-bloat: + - description: 'remove IPython reference' + replacements_plain: + 'import IPython': 'raise ImportError' + 'from IPython import get_ipython': 'raise ImportError' + 'from IPython.terminal.interactiveshell import TerminalInteractiveShell': 'raise ImportError' + 'from IPython.frontend.terminal.interactiveshell import TerminalInteractiveShell': 'raise ImportError' + 'from IPython.lib.latextools import latex_to_png': 'raise ImportError' + 'from IPython.core.interactiveshell import InteractiveShell': 'raise ImportError' + when: 'not use_ipython' + +- module-name: 'sympy.interactive.session' + anti-bloat: + - description: 'remove IPython reference' + replacements_plain: + 'import IPython': 'raise ImportError' + 'from IPython import get_ipython': 'raise ImportError' + when: 'not use_ipython' + - module-name: 'tables' anti-bloat: - description: 'remove tables.tests usage'