From 0ecbfe7788aa76a8d22da4e9ad77335a6fc5bade Mon Sep 17 00:00:00 2001 From: Umberto Zerbinati Date: Fri, 4 Oct 2024 12:27:52 +0100 Subject: [PATCH] Scipy dependencies in setup.py --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fd9f332..4cc084f 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,9 @@ with open("README.md", "r", encoding = "utf-8") as fh: long_description = fh.read() - + +scipy = '' if 'NGSPETSC_NO_SCIPY' in os.environ else 'scipy' + if 'NGSPETSC_NO_INSTALL_REQUIRED' in os.environ: install_requires = [] elif 'NGS_FROM_SOURCE' in os.environ: @@ -10,6 +12,7 @@ 'petsc4py', 'mpi4py', 'numpy', + scipy, 'pytest', #For testing 'pylint', #For formatting ] @@ -19,6 +22,7 @@ 'ngsolve', 'petsc4py', 'mpi4py', + scipy, 'pytest', #For testing 'pylint', #For formatting ]