namd: added patching charmrun location, as it stored in prefix.bin (#18355)
This commit is contained in:
parent
6ceb3d4be0
commit
9b654fe60c
@ -142,6 +142,15 @@ def edit(self, spec, prefix):
|
||||
|
||||
config(self.build_directory, *opts)
|
||||
|
||||
# patch Make.config if needed
|
||||
# spack install charmpp straight to prefix
|
||||
# (not to $(CHARMBASE)/$(CHARMARCH))
|
||||
if not os.path.exists(join_path(
|
||||
self.spec['charmpp'].prefix, self.spec['charmpp'].charmarch)):
|
||||
filter_file(r"^CHARM = \$\(CHARMBASE\)/\$\(CHARMARCH\)",
|
||||
"CHARM = $(CHARMBASE)",
|
||||
join_path(self.build_directory, "Make.config"))
|
||||
|
||||
def install(self, spec, prefix):
|
||||
with working_dir(self.build_directory):
|
||||
mkdirp(prefix.bin)
|
||||
|
Loading…
Reference in New Issue
Block a user