-
Notifications
You must be signed in to change notification settings - Fork 427
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
support stdlib() jinja function #4996
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.
Thanks a lot for the PR!
I don't know the conda-build code base, but left some comments for things that stood out to me.
# fall back to native if language-key is not explicitly set in variant | ||
package_prefix = config.variant.get(language_key, package_prefix) |
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.
Not sure if the fallback makes sense for stdlib
? If I read the code correctly, the fallback key we'd be looking for would just be c
?
IOW, if I'm not overlooking something here, I think we could move move the if "compiler"
branch in here rather than setting a dummy package_prefix
for stdlib
.
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.
Yes, it would be c_linux-64
. We can also use {{ compiler('clang') }}
which expands to clang_linux-64
with this fallback. Don't see a reason we shouldn't allow it for stdlib.
@h-vetinari, can you help with writing a test and fixing the existing tests? |
Do you want me to raise a PR against your branch or can you make me collaborator on your fork? |
Can you create a new PR in this repo? |
Done: #4999 |
Superseded by #4999 |
Description
Checklist - did you ...
news
directory (using the template) for the next release's release notes?Fixes #4981
cc @h-vetinari, @chenghlee, @mbargull, @beckermr