Skip to content

Commit

Permalink
Merge pull request #3526 from Micket/scipymeson
Browse files Browse the repository at this point in the history
retain custom easyconfig parameters supported by `MesonNinja` easyblock in custom easyblock for `scipy`
  • Loading branch information
boegel authored Dec 11, 2024
2 parents 6ea2af3 + b1cef7e commit 3494f2f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions easybuild/easyblocks/s/scipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@ class EB_scipy(FortranPythonPackage, PythonPackage, MesonNinja):
"""Support for installing the scipy Python package as part of a Python installation."""

@staticmethod
def extra_options():
def extra_options(extra_vars=None):
"""Easyconfig parameters specific to scipy."""
extra_vars = ({
extra_vars = PythonPackage.extra_options(extra_vars=extra_vars)
extra_vars = MesonNinja.extra_options(extra_vars=extra_vars)
extra_vars.update({
'enable_slow_tests': [False, "Run scipy test suite, including tests marked as slow", CUSTOM],
'ignore_test_result': [None, "Run scipy test suite, but ignore test failures (True/False/None). Default "
"(None) implies True for scipy < 1.9, and False for scipy >= 1.9", CUSTOM],
})

return PythonPackage.extra_options(extra_vars=extra_vars)
return extra_vars

def __init__(self, *args, **kwargs):
"""Set scipy-specific test command."""
Expand Down

0 comments on commit 3494f2f

Please sign in to comment.