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

also support %(installdir)s and %(builddir)s templates for extensions #3237

Merged

Conversation

akesandgren
Copy link
Contributor

No description provided.

@akesandgren akesandgren added this to the 4.x milestone Mar 9, 2020
@akesandgren akesandgren changed the title First attempt at adding missing install/builddir templates to extensions. First attempt at adding missing install/builddir templates to extensions. (WIP) Mar 9, 2020
@akesandgren
Copy link
Contributor Author

This solves my problem of using %(installdir)s in a preinstallopts in an exts_list in GROMACS

Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

@akesandgren lgtm, but needs to be covered in the tests too...

@@ -111,6 +111,11 @@ def __init__(self, mself, ext, extra_params=None):
# construct dict with template values that can be used
self.cfg.template_values.update(template_constant_dict({'name': name, 'version': version}))

# Add install/builddir templates, copied from update_config_template_run_step
# do we need to call self.cfg.generate_template_values() after?
Copy link
Member

Choose a reason for hiding this comment

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

No need to call generate_template_values, so you can drop this comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought so, since that's already done in master.

Clarify where the values for install/builddir is coming from.
@akesandgren
Copy link
Contributor Author

BTW, this is going to be vital for GROMACS 2020.1 with the gmxapi extension.

@akesandgren akesandgren changed the title First attempt at adding missing install/builddir templates to extensions. (WIP) First attempt at adding missing install/builddir templates to extensions. Mar 11, 2020
@boegel boegel merged commit 5340dae into easybuilders:develop Mar 12, 2020
@akesandgren akesandgren deleted the fix_missing_templates_in_extensions branch March 12, 2020 09:37
@boegel boegel changed the title First attempt at adding missing install/builddir templates to extensions. also support %(installdir)s and %(builddir)s templates for extensions Mar 22, 2020
@boegel boegel modified the milestones: 4.x, next release (4.2.0) Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants