Skip to content

add support for excluding module path extensions from generated modules#1003

Merged
boegel merged 1 commit intoeasybuilders:developfrom
boegel:ignore_modpath_extensions
Aug 14, 2014
Merged

add support for excluding module path extensions from generated modules#1003
boegel merged 1 commit intoeasybuilders:developfrom
boegel:ignore_modpath_extensions

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Aug 13, 2014

@wpoely86: please review

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Aug 13, 2014

This should be used by the GCC easyconfig included in easybuilders/easybuild-easyconfigs#1014

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

before, you had an if to check this. It's guaranteed that this is not needed anymore?

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.

when there are no $MODULEPATH extensions, modpath_exts should be an empty list, which will basically make everything below a no-op (except for the log message)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Then you call self.moduleGenerator.use with a empty list? Isn't that gonna get things like ::: in the $MODULEPATH?

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.

no, since use loops over the provided list a well (see https://github.com/hpcugent/easybuild-framework/blob/master/easybuild/tools/module_generator.py#L185), and '\n'.join([]) returns and empty string

@wpoely86
Copy link
Copy Markdown
Member

Looks good

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Aug 14, 2014

Going in, thanks for the review @wpoely86!

boegel added a commit that referenced this pull request Aug 14, 2014
add support for excluding module path extensions from generated modules
@boegel boegel merged commit f941392 into easybuilders:develop Aug 14, 2014
@boegel boegel deleted the ignore_modpath_extensions branch August 14, 2014 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants