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