From 1e787cabfab0f704fc7163c7a14f9f07c0fc49b3 Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Wed, 18 Sep 2024 16:11:40 -0500 Subject: [PATCH 1/2] Remove $CONDA_DEFAULT_ENV templating engine --- conda_build/metadata.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/conda_build/metadata.py b/conda_build/metadata.py index 071036bd0c..6917617c8e 100644 --- a/conda_build/metadata.py +++ b/conda_build/metadata.py @@ -1942,16 +1942,6 @@ def _get_contents( jinja2.FileSystemLoader(path), ] - # search relative to current conda environment directory - conda_env_path = os.environ.get( - "CONDA_DEFAULT_ENV" - ) # path to current conda environment - if conda_env_path and os.path.isdir(conda_env_path): - conda_env_path = os.path.abspath(conda_env_path) - conda_env_path = conda_env_path.replace("\\", "/") # need unix-style path - env_loader = jinja2.FileSystemLoader(conda_env_path) - loaders.append(jinja2.PrefixLoader({"$CONDA_DEFAULT_ENV": env_loader})) - undefined_type = jinja2.StrictUndefined if permit_undefined_jinja: # The UndefinedNeverFail class keeps a global list of all undefined names From fee13b264980250b928dafefcc558821e3315bb8 Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Fri, 20 Sep 2024 12:08:20 -0500 Subject: [PATCH 2/2] Add news --- ...emove-$CONDA_DEFAULT_ENV-templating-engine | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 news/5495-remove-$CONDA_DEFAULT_ENV-templating-engine diff --git a/news/5495-remove-$CONDA_DEFAULT_ENV-templating-engine b/news/5495-remove-$CONDA_DEFAULT_ENV-templating-engine new file mode 100644 index 0000000000..5fe0adddb4 --- /dev/null +++ b/news/5495-remove-$CONDA_DEFAULT_ENV-templating-engine @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* + +### Deprecations + +* Remove broken `$CONDA_DEFAULT_ENV` templating engine. (#5495) + +### Docs + +* + +### Other + +*