astyle: fix filter command which failed on OSX with python 2.7.10

This commit is contained in:
Denis Davydov 2016-05-13 15:31:46 +02:00
parent 5e13bba068
commit 67999d1b1c

View File

@ -41,7 +41,7 @@ def install(self, spec, prefix):
# we need to edit the makefile in place to set compiler:
make_file = join_path(self.stage.source_path,
'build', 'gcc', 'Makefile')
filter_file(r'^CXX\s*=.*', 'CXX=%s'.format(spack_cxx), make_file)
filter_file(r'^CXX\s*=.*', 'CXX=%s' % spack_cxx, make_file)
make('-f',
make_file,