How to build conda recipes based on arguments passed with the `conda build` command

291 views Asked by At

I would like to have a single recipe to build all my individual python packages in my repository. (There are multiple ones here.) This is how the repo is structured:

repo
|--package1
   |--setup.py
|--package2
   |--setup.py
|--package3
   |--setup.py
|--recipe
   |--meta.yaml

I would like to build each package in the following manner:

conda build recipe/ --variants "{'package':['package1','package2','package3']}"

This should allow me to pickup the package and set the path accordingly in the meta.yaml file:

source:
  path: ../{{ package }}
  1. Is is possible to access the variants data from within the recipe?
  2. If not, are there alternatives to achieve this?
0

There are 0 answers