Skip to content

Commit f0a824b

Browse files
committed
Fix super.make_module_extra calls
1 parent 85e35d8 commit f0a824b

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

easybuild/easyblocks/c/code_server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,4 @@ def sanity_check_step(self):
8181

8282
def make_module_extra(self):
8383
"""Add the default directories to the PATH."""
84-
txt = EasyBlock.make_module_extra(self)
85-
return txt
84+
return EasyBlock.make_module_extra(self)

easybuild/easyblocks/generic/juliabundle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,4 @@ def sanity_check_step(self, *args, **kwargs):
9595

9696
def make_module_extra(self, *args, **kwargs):
9797
"""Custom module environment from JuliaPackage"""
98-
mod = super().make_module_extra(*args, **kwargs)
99-
return mod
98+
return super().make_module_extra(*args, **kwargs)

easybuild/easyblocks/generic/rpackage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ def sanity_check_step(self, *args, **kwargs):
344344
"""
345345
return super().sanity_check_step(EXTS_FILTER_R_PACKAGES, *args, **kwargs)
346346

347-
def make_module_extra(self):
347+
def make_module_extra(self, *args, **kwargs):
348348
"""Add install path to R_LIBS_SITE"""
349349
# prepend R_LIBS_SITE with install path
350350
extra = self.module_generator.prepend_paths("R_LIBS_SITE", [self.cfg['exts_subdir']])
351-
return super().make_module_extra(extra)
351+
return super().make_module_extra(*args, **kwargs) + extra

easybuild/easyblocks/j/java.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,6 @@ def make_module_extra(self):
211211
"""
212212
Set $JAVA_HOME to installation directory
213213
"""
214-
txt = PackedBinary.make_module_extra(self)
214+
txt = super().make_module_extra()
215215
txt += self.module_generator.set_environment('JAVA_HOME', self.installdir)
216216
return txt

test/easyblocks/suite.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)