ITADN

Refer to patches contained in other sources

#2551Closedjaimergp 创建于 2026-06-15
J
jaimergpcommented
I'm trying to port `conda-standalone`'s `meta.yaml` to `recipe.yaml`. It features this sources section: ```yaml source: - url: https://github.com/conda/conda-standalone/archive/{{ version }}.tar.gz sha256: 12323fb53979e00243b87d9391b2da4b8eb05b7a0abc988501dd719df41d7b29 - url: https://github.com/conda/conda/archive/{{ conda_version }}.tar.gz sha256: 599defcc081883ee23656e146878abc2df344296e152c459a0ef05553c47e1c9 folder: conda_src patches: - "{{ SRC_DIR | replace('\\', '/') }}/src/conda_patches/0001-Rename-and-replace-entrypoint-stub-exe.patch" - "{{ SRC_DIR | replace('\\', '/') }}/src/conda_patches/0002-Manipulate-PATH-directly-instead-of-_call_ing-conda.patch" - "{{ SRC_DIR | replace('\\', '/') }}/src/conda_patches/0003-Restrict-search-paths.patch" - "{{ SRC_DIR | replace('\\', '/') }}/src/conda_patches/0004-Fix-conda-run.patch" ``` `conda/conda-standalone` ships some patches to be applied on top of `conda/conda`. However, there doesn't seem to be a way to refer to `SRC_DIR` from the `patches` context: ``` Error: × Failed to render recipe with variants ╰─▶ Jinja template error: Template rendering failed: undefined value (in <string>:1) (template: ${{ SRC_DIR }}/src/conda_patches/0001-Rename-and- replace-entrypoint-stub-exe.patch) ╭─[/Users/jrodriguez/devel/conda-standalone-feedstock/recipe/recipe.yaml:23:9] 22 │ patches: 23 │ - ${{ SRC_DIR }}/src/conda_patches/0001-Rename-and-replace-entrypoint-stub-exe.patch · ─┬─ · ╰── Template rendering failed: undefined value (in <string>:1) (template: ${{ SRC_DIR }}/src/conda_patches/0001-Rename-and-replace-entrypoint-stub-exe.patch) 24 │ - ${{ SRC_DIR }}/src/conda_patches/0002-Manipulate-PATH-directly-instead-of-_call_ing-conda.patch ╰──── ``` Are all patches expected to be in the recipe directory, forcefully? Is there a chance this can be relaxed?
关闭于 2026-06-23 4 条评论