-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support stdlib() jinja function (#4999)
* support stdlib() jinja function * Fix typos * Fix formatting * Fix func signature * re-add compiler to jinja_context-namespace * add test for stdlib jinja * Fix tests * Need platform and arch as well. Due to the order in which cbc.yaml is parsed. * add documentation for stdlib jinja-function * minor edits after review * flesh out explanation of how `stdlib` is intended to work * reST nits * avoid "resp." abbreviation, reformulate sentence & reflow paragraph --------- Co-authored-by: Isuru Fernando <[email protected]> Co-authored-by: jakirkham <[email protected]>
- Loading branch information
1 parent
7c9e766
commit e2916a2
Showing
5 changed files
with
140 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
tests/test-recipes/metadata/_stdlib_jinja2/conda_build_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
c_stdlib: # [unix] | ||
- sysroot # [linux] | ||
- macosx_deployment_target # [osx] | ||
c_stdlib_version: # [unix] | ||
- 2.12 # [linux64] | ||
- 2.17 # [aarch64 or ppc64le] | ||
- 10.13 # [osx and x86_64] | ||
- 11.0 # [osx and arm64] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package: | ||
name: stdlib-test | ||
version: 1.0 | ||
|
||
requirements: | ||
host: | ||
- {{ stdlib('c') }} | ||
# - {{ stdlib('cxx') }} | ||
# - {{ stdlib('fortran') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters