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)
This commit is contained in:
Jed Brown 2018-02-09 14:11:03 -07:00 committed by scheibelp
parent deb1a93f81
commit ec162e69b2

View file

@ -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)