conda-build
conda-build copied to clipboard
Bugfix: Show the setup_file parameter in the debug info when ImportError happens
The code in jinja_context.py:load_setup_py_data()
was hard coded and not showing the user provided setup_file
parameter, in the event of ImportError
+ permit_undefined_jinja=True
. This PR fixes that.
A summary of what changed
- The debug statement now prints the user-provided
setup_file
parameter, instead of a hard-codedsetup.py
. - Changed in:
jinja_context.py:load_setup_py_data()
DIFF
See here.
except ImportError as e:
if permit_undefined_jinja:
log = get_logger(__name__)
- log.debug("Reading setup.py failed due to missing modules. This is probably OK, "
+ log.debug(f"Reading {setup_file} failed due to missing modules. This is probably OK, "
"since it may succeed in later passes. Watch for incomplete recipe "
"info, though.")
We require contributors to sign our Contributor License Agreement, and we don't have one on file for @sugatoray. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature.
pre-commit.ci autofix
cc: @msarahan @conda-bot @anaconda-issue-bot It's a small change. I am not sure why so many CI's are failing.
Also, I have signed up the CLA. Does it take some time before it passes the verification/cla-signed
step?
We recently enabled pre-commit, please wait for #4327 to be merged which will resolve all of these issues. Thanks.
@anaconda-issue-bot check
Hi there, thank you for your contribution!
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.
If you would like this pull request to remain open please:
- Rebase and verify the changes still work
- Leave a comment with the current status
NOTE: If this pull request was closed prematurely, please leave a comment.
Thanks!