Skip to content

Commit 95c3271

Browse files
author
Vasileios Karakasis
committed
Remove generated_modules() from Spack backend
1 parent 3544756 commit 95c3271

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

reframe/core/buildsystems.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -892,24 +892,6 @@ def prepare_cmds(self):
892892

893893
return cmds
894894

895-
def post_build(self, buildjob):
896-
# Store the modules generated by Spack
897-
898-
with open(os.path.join(self._prefix_save, buildjob.stdout)) as fp:
899-
out = fp.read()
900-
901-
matches = re.findall(r'\[\+\] \S+/spack/opt/spack/\S+/(\S+)',
902-
out)
903-
self._modules = []
904-
for mod in matches:
905-
mod = os.path.basename(mod)
906-
name, version, hashid = mod.rsplit('-', maxsplit=2)
907-
self._modules.append(f'{name}@{version}/{hashid}')
908-
909-
@property
910-
def generated_modules(self):
911-
return self._modules
912-
913895

914896
class BuildSystemField(fields.TypedField):
915897
def __init__(self, fieldname, *other_types):

0 commit comments

Comments
 (0)