Skip to content

add support for setting environment variables via 'pushenv' with modextravars#4030

Merged
bartoldeman merged 3 commits intoeasybuilders:developfrom
boegel:modextravars_pushenv
Jul 5, 2022
Merged

add support for setting environment variables via 'pushenv' with modextravars#4030
bartoldeman merged 3 commits intoeasybuilders:developfrom
boegel:modextravars_pushenv

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Jun 17, 2022

Use case here is internal, but it's basically an environment variable we want to define via pushenv through a custom hook implementation.

General support for pushenv is useful, since it avoids the need to resort to modluafooter...

@boegel boegel added this to the 4.x milestone Jun 17, 2022
raise EasyBuildError("Required key 'value' is missing in dict that specifies how to set $%s: %s",
env_var_name, env_var_val)
else:
raise EasyBuildError("Incorrect value type for setting $%s environment variable (%s): %s",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this include list of valid types?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would be helpful indeed, I'll change that, thanks for the suggestion!

Comment thread test/framework/easyblock.py
@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jun 22, 2022

Tests are failing when using Lmod as modules tool + Tcl as module file syntax, which is due to a bug in Lmod I think; see upstream issue I opened at TACC/Lmod#584 .

@boegel boegel modified the milestones: 4.x, next release (4.5.6?) Jun 22, 2022
@easybuilders easybuilders deleted a comment from boegelbot Jul 1, 2022
@easybuilders easybuilders deleted a comment from boegelbot Jul 5, 2022
@boegel boegel requested a review from bartoldeman July 5, 2022 10:44
Copy link
Copy Markdown
Contributor

@bartoldeman bartoldeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants