[Python] Can I pin the 'global' conda environment in Snakemake?

Discussão em 'Python' iniciado por Stack, Maio 27, 2025.

  1. Stack

    Stack Membro Participativo

    When injecting into the Python environment running snakemake using the

    conda:
    "envs/global.yaml"


    directive as described here, can I pin the exact environment using a envs/global.<platform>.pin.txt file as described here?


    Context:

    When adding envs/foo.{platform}.pin.txt for an environment activated via

    rule foo:
    conda: "envs/foo.yaml"
    ...


    to a specific rule as described here, running

    snakemake -n1 foo


    prints the following informative messages:

    ...
    Creating conda environment <path>/envs/foo.yaml...
    Using pinnings from <path>/envs/foo.{platform}.pin.txt.
    ...


    However, for the 'global' environment (see above) there is no such message to indicate whether envs/global.<platform>.pin.txt is being considered or not.

    Continue reading...

Compartilhe esta Página