From ec162e69b27707f37ab979c2064edfe0c6ad9099 Mon Sep 17 00:00:00 2001 From: Jed Brown Date: Fri, 9 Feb 2018 14:11:03 -0700 Subject: [PATCH] petsc: use spack-built python for configure (#7176) Make sure to use Spack-built python to run petsc configure script (in particular since petsc requires python@2.6:2.8) --- var/spack/repos/builtin/packages/petsc/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index c99a578fc8..15b9b77ba5 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -251,7 +251,7 @@ def install(self, spec, prefix): '--with-superlu_dist=0' ) - configure('--prefix=%s' % prefix, *options) + python('configure', '--prefix=%s' % prefix, *options) # PETSc has its own way of doing parallel make. make('MAKE_NP=%s' % make_jobs, parallel=False)