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
Updated numpy easyblock to use read_file for patch. #2395
Updated numpy easyblock to use read_file for patch. #2395
Conversation
@@ -142,7 +142,7 @@ def get_libs_for_mkl(varname): | |||
# patches are either strings (extension) or dicts (easyblock) | |||
if isinstance(patch, dict): | |||
patch = patch['path'] | |||
if patch_wl_regex.search(open(patch, 'r').read()): | |||
if patch_wl_regex.search(read_file(patch)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(sorry that was a stupid comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dithwick can you create a test report that includes this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep will do!
Test report by @dithwick Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Going in, thanks @dithwick! |
This fixes issue #2393 (for numpy.py only).