Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions easybuild/framework/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import copy
import os

from easybuild.framework.easyconfig.default import get_easyconfig_parameter_default
from easybuild.framework.easyconfig.easyconfig import resolve_template
from easybuild.framework.easyconfig.templates import TEMPLATE_NAMES_EASYBLOCK_RUN_STEP, template_constant_dict
from easybuild.tools.build_log import EasyBuildError, EasyBuildExit, raise_nosupport
Expand Down Expand Up @@ -107,10 +108,19 @@ def __init__(self, mself, ext, extra_params=None):

name, version = self.ext['name'], self.ext.get('version', None)

# parent sanity check paths/commands and postinstallcmds are not relevant for extension
self.cfg['sanity_check_commands'] = []
self.cfg['sanity_check_paths'] = []
self.cfg['postinstallcmds'] = []
# Reset some options that should not be inherited from the parent
restore_options = (
'checksums',
'data_sources',
'patches',
'postinstallcmds',
'sanity_check_commands',
'sanity_check_paths',
'skipsteps',
'sources',
)
for opt_name in restore_options:
self.cfg[opt_name] = get_easyconfig_parameter_default(opt_name)

# construct dict with template values that can be used
self.cfg.template_values.update(template_constant_dict({'name': name, 'version': version}))
Expand Down