diff options
author | Nicolas Richart <nicolas.richart@epfl.ch> | 2015-12-20 13:38:22 +0100 |
---|---|---|
committer | Nicolas Richart <nicolas.richart@epfl.ch> | 2015-12-20 13:38:22 +0100 |
commit | 27d52badb18ed4281c69730de432c7d6dd5d3f67 (patch) | |
tree | 9e8847404645299adab07afb3645379f1fc34592 /var | |
parent | 614c4d1876f488c699b8982b084699877dc87066 (diff) | |
download | spack-27d52badb18ed4281c69730de432c7d6dd5d3f67.tar.gz spack-27d52badb18ed4281c69730de432c7d6dd5d3f67.tar.bz2 spack-27d52badb18ed4281c69730de432c7d6dd5d3f67.tar.xz spack-27d52badb18ed4281c69730de432c7d6dd5d3f67.zip |
removing completely the write_make_inc function
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/packages/scotch/package.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/var/spack/packages/scotch/package.py b/var/spack/packages/scotch/package.py index f92fa915f9..8229ed8686 100644 --- a/var/spack/packages/scotch/package.py +++ b/var/spack/packages/scotch/package.py @@ -72,8 +72,7 @@ class Scotch(Package): makefile_inc.append('LDFLAGS = %s' % ' '.join(ldflags)) - - def write_make_inc(self): + def patch(self): makefile_inc = [] defines = [ '-DCOMMON_RANDOM_FIXED_SEED', @@ -101,12 +100,9 @@ class Scotch(Package): '' ]) - with open('Makefile.inc', 'w') as fh: - fh.write('\n'.join(makefile_inc)) - - def patch(self): with working_dir('src'): - self.write_make_inc() + with open('Makefile.inc', 'w') as fh: + fh.write('\n'.join(makefile_inc)) def install(self, spec, prefix): targets = ['scotch'] |