moving write_make_inc into a patch function
This commit is contained in:
parent
ed7db8e489
commit
614c4d1876
@ -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'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user