Skip to content
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

Remove $CONDA_DEFAULT_ENV templating engine #5495

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions news/5495-remove-$CONDA_DEFAULT_ENV-templating-engine
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* Remove broken `$CONDA_DEFAULT_ENV` templating engine. (#5495)

### Docs

* <news item>

### Other

* <news item>
Loading