Skip to content

Commit e219933

Browse files
authored
Merge pull request #4888 from boegel/fix_exts_defaultclass_check
check whether `exts_defaultclass` is set after call to `prepare_for_extensions`
2 parents 1118cc0 + b0da73a commit e219933

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

easybuild/framework/easyblock.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3176,14 +3176,14 @@ def extensions_step(self, fetch=False, install=True):
31763176
self.log.debug("No extensions in exts_list")
31773177
return
31783178

3179-
# we really need a default class
3180-
if not self.cfg['exts_defaultclass'] and install:
3181-
raise EasyBuildError("ERROR: No default extension class set for %s", self.name)
3182-
31833179
start_progress_bar(PROGRESS_BAR_EXTENSIONS, len(self.cfg.get_ref('exts_list')))
31843180

31853181
self.prepare_for_extensions()
31863182

3183+
# we really need a default class
3184+
if not self.cfg['exts_defaultclass'] and install:
3185+
raise EasyBuildError("ERROR: No default extension class set for %s", self.name)
3186+
31873187
if fetch:
31883188
self.update_exts_progress_bar("fetching extension sources/patches")
31893189
self.exts = self.collect_exts_file_info(fetch_files=True)

test/framework/easyconfigs/test_ecs/t/toy/toy-0.0-gompi-2018a-test.eb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ local_bar_buildopts = " && gcc bar.c -o anotherbar && "
2727
# used to check whether $TOY_LIBS_PATH is defined even when 'lib' subdirectory doesn't exist yet
2828
local_bar_buildopts += 'echo "TOY_EXAMPLES=$TOY_EXAMPLES" > %(installdir)s/toy_libs_path.txt'
2929

30-
exts_defaultclass = 'DummyExtension'
3130
exts_list = [
3231
'ulimit', # extension that is part of "standard library"
3332
('bar', '0.0', {

0 commit comments

Comments
 (0)