From 650f24f4d37a6421ab2f0851513489a679c5ac77 Mon Sep 17 00:00:00 2001 From: Sinan Date: Fri, 12 Mar 2021 09:36:11 -0800 Subject: [PATCH] add hints for dependency resolution (#22238) Co-authored-by: sbulut --- var/spack/repos/builtin/packages/alps/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/alps/package.py b/var/spack/repos/builtin/packages/alps/package.py index 002e2c0bd1..b75de1c5b1 100644 --- a/var/spack/repos/builtin/packages/alps/package.py +++ b/var/spack/repos/builtin/packages/alps/package.py @@ -33,6 +33,10 @@ class Alps(CMakePackage): depends_on('py-scipy', type=('build', 'run')) depends_on('py-matplotlib', type=('build', 'run')) + # use depends_on to help with dependency resolution + depends_on('py-numpy@:1.19', when='^python@:3.6.99') + depends_on('py-scipy@:1.5', when='^python@:3.6.99') + # fix for gcc@7: patch('alps_newgcc.patch', when='%gcc@7:')