-
Notifications
You must be signed in to change notification settings - Fork 31
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
Update library import checks #76
Conversation
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
Codecov Report
@@ Coverage Diff @@
## main #76 +/- ##
=======================================
Coverage 73.43% 73.43%
=======================================
Files 6 6
Lines 753 753
=======================================
Hits 553 553
Misses 200 200 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
The complex build is failing. It looks like a path issue with the import test.
Ugh, right, the |
parser.add_argument( | ||
"name", | ||
type=str, | ||
help="Library name (example: libpackage.so). Note: This script must be run in the same dir as the library.", |
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.
The note is not true anymore, right?
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.
Actually, I think I misinterpreted this. It makes sense now.
Purpose
Currently, the library import check suppresses useful information why the library could not be imported. This PR updates the import check to print out the full error message.
Expected time until merged
No rush.
Type of change
Testing
Compile the module with and without the fix, with a broken library (e.g., by commenting out
CGNS_LINKER_FLAGS
in the config).Checklist
flake8
andblack
to make sure the Python code adheres to PEP-8 and is consistently formattedfprettify
or C/C++ code withclang-format
as applicable