Skip to content

Conversation

@boegel
Copy link
Member

@boegel boegel commented Apr 29, 2018

For easybuilders/easybuild-easyblocks#1377, so it leveraged for Python packages that are installed as extensions (e.g. via Bundle easyblock).

This is required because variables defined in an easyconfig file that are not known easyconfig parameters are thrown away, and thus they can't be inherited by extensions...

@boegel boegel added this to the 3.6.1 milestone Apr 29, 2018
globals().update(ALL_CATEGORIES)
CATEGORY_NAMES = ['BUILD', 'CUSTOM', 'DEPENDENCIES', 'EXTENSIONS', 'FILEMANAGEMENT', 'HIDDEN',
'LICENSE', 'MANDATORY', 'MODULES', 'OTHER', 'TOOLCHAIN']
ALL_CATEGORIES = dict((name, eval(name)) for name in CATEGORY_NAMES)
Copy link
Member

Choose a reason for hiding this comment

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

why change this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because flake8 (rightfully) doesn't like us defining constants at runtime by injecting stuff into globals().

If you want me to, I can flesh this out in a separate PR.

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.

2 participants