From b43ed76fa703cedb0adf00cc79ed91e8a8d2af74 Mon Sep 17 00:00:00 2001 From: Itaru Kitayama Date: Wed, 28 Apr 2021 21:17:09 +0900 Subject: nest: depend on py-scipy when +python (#23306) Co-authored-by: Itaru Kitayama --- var/spack/repos/builtin/packages/nest/package.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/nest/package.py b/var/spack/repos/builtin/packages/nest/package.py index f28f176e98..7b7658028f 100644 --- a/var/spack/repos/builtin/packages/nest/package.py +++ b/var/spack/repos/builtin/packages/nest/package.py @@ -25,9 +25,11 @@ class Nest(CMakePackage): version('2.6.0', sha256='5fe4924bc57d0c7dd820aa371de935eedf7e813832c0eee2c976b33c9a8db4cf') version('2.4.2', sha256='8f86e58c1a12b733ffabd8b0400326e5a3494a458149ea8ebe9f19674d05b91b') + maintainers = ['ikitayama'] + variant('python', default=False, description='Build the PyNest interface') - variant('mpi', default=True, + variant('mpi', default=False, description='Build with MPI bindings') variant('openmp', default=True, description='"Enable OpenMP support"') @@ -50,6 +52,7 @@ class Nest(CMakePackage): depends_on('python@2.6:', when='+python', type=('build', 'run')) depends_on('py-numpy', when='+python', type=('build', 'run')) + depends_on('py-scipy', when='+python', type=('run')) depends_on('py-cython@0.19.2:', when='+python', type='build') depends_on('py-nose', when='+python', type='test') depends_on('py-setuptools', when='+python', type='build') @@ -106,8 +109,7 @@ class Nest(CMakePackage): args.append('-Dwith-mpi=OFF') if '+python' in self.spec: - version = self.spec['python'].version[0] - args.append('-Dwith-python={0}'.format(version)) + args.append('-Dwith-python=ON') args.append('-Dcythonize-pynest=' + self.spec['py-cython'].prefix) else: args.append('-Dwith-python=OFF') -- cgit v1.2.3-60-g2f50