moving write_make_inc into a patch function

This commit is contained in:
Nicolas Richart 2015-12-20 13:27:43 +01:00
parent ed7db8e489
commit 614c4d1876

View File

@ -104,6 +104,10 @@ def write_make_inc(self):
with open('Makefile.inc', 'w') as fh:
fh.write('\n'.join(makefile_inc))
def patch(self):
with working_dir('src'):
self.write_make_inc()
def install(self, spec, prefix):
targets = ['scotch']
if '+mpi' in self.spec:
@ -115,7 +119,6 @@ def install(self, spec, prefix):
targets.append('ptesmumps')
with working_dir('src'):
self.write_make_inc()
for app in targets:
make(app, parallel=(not app=='ptesmumps'))