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:
|
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'))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user