Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adopt module_load_environment: ABAQUS #3578

Merged
merged 1 commit into from
Feb 10, 2025
Merged
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
20 changes: 6 additions & 14 deletions easybuild/easyblocks/a/abaqus.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ def __init__(self, *args, **kwargs):
self.log.info("Auto-enabling installation of fe-safe components for ABAQUS versions >= 2020")
self.cfg['with_fe_safe'] = True

# add custom paths to $PATH
path_subdirs = ['Commands']
if self.cfg['with_tosca']:
path_subdirs.append(os.path.join('cae', 'linux_a64', 'code', 'command'))
self.module_load_environment.PATH.extend(path_subdirs)

def extract_step(self):
"""Use default extraction procedure instead of the one for the Binary easyblock."""
EasyBlock.extract_step(self)
Expand Down Expand Up @@ -353,20 +359,6 @@ def sanity_check_step(self):

super(EB_ABAQUS, self).sanity_check_step(custom_paths=custom_paths, custom_commands=custom_commands)

def make_module_req_guess(self):
"""Update $PATH guesses for ABAQUS."""
guesses = super(EB_ABAQUS, self).make_module_req_guess()

path_subdirs = ['Commands']
if self.cfg['with_tosca']:
path_subdirs.append(os.path.join('cae', 'linux_a64', 'code', 'command'))

guesses.update({
'PATH': path_subdirs,
})

return guesses

def make_module_extra(self):
"""Add LM_LICENSE_FILE path if specified"""
txt = super(EB_ABAQUS, self).make_module_extra()
Expand Down