Skip to content

determine whether included easyblocks are generic or not based on class they define#2432

Merged
wpoely86 merged 3 commits intoeasybuilders:developfrom
boegel:fix_include_generic_easyblocks
Mar 13, 2018
Merged

determine whether included easyblocks are generic or not based on class they define#2432
wpoely86 merged 3 commits intoeasybuilders:developfrom
boegel:fix_include_generic_easyblocks

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Mar 8, 2018

@easybuilders easybuilders deleted a comment from boegelbot Mar 9, 2018
wpoely86
wpoely86 previously approved these changes Mar 13, 2018
Comment thread easybuild/tools/include.py Outdated

def is_software_specific_easyblock(module):
"""Determine whether Python module at specified location is a software-specific easyblock."""
return bool(re.search('^class EB_.*\(.*\):$', read_file(module), re.M))
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.

keep accidental trailing whitespace in mind?

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.

Makes sense, done

@wpoely86 wpoely86 merged commit 2d550d8 into easybuilders:develop Mar 13, 2018
@boegel boegel deleted the fix_include_generic_easyblocks branch March 13, 2018 09:18
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