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:
|
with open('Makefile.inc', 'w') as fh:
|
||||||
fh.write('\n'.join(makefile_inc))
|
fh.write('\n'.join(makefile_inc))
|
||||||
|
|
||||||
|
def patch(self):
|
||||||
|
with working_dir('src'):
|
||||||
|
self.write_make_inc()
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
targets = ['scotch']
|
targets = ['scotch']
|
||||||
if '+mpi' in self.spec:
|
if '+mpi' in self.spec:
|
||||||
@ -115,7 +119,6 @@ def install(self, spec, prefix):
|
|||||||
targets.append('ptesmumps')
|
targets.append('ptesmumps')
|
||||||
|
|
||||||
with working_dir('src'):
|
with working_dir('src'):
|
||||||
self.write_make_inc()
|
|
||||||
for app in targets:
|
for app in targets:
|
||||||
make(app, parallel=(not app=='ptesmumps'))
|
make(app, parallel=(not app=='ptesmumps'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user