[Python] conda-build : Duplication of requirements in environment.yml and meta.yml

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

  1. Stack

    Stack Membro Participativo

    I am trying to build a python package for conda-forge. This package depends on other packages. During development I have been specifying the dev environment using environment.yml to allow other developers to easily replicate the env with conda env create --file environment.yml. So far so good, no problems, conda is amazing at this.

    Now, I am trying to package with conda-build. I have created the recipe meta.yaml and duplicated the requirements from environment.yml into the build section. That's silly. I now have two different sets of requirements, one for development and one for building. I am sure there must be a simple way to have a single source of requirements, but I have not been able to find it.

    I have looked in the anaconda and conda-build docs for any explanation of how to use either environment.yml for building, or meta.yaml for setting up a dev environment, so I don't need to have two sources of truth when it comes to dependencies.

    Continue reading...

Compartilhe esta Página