bioconda / bioconda-utils

Utilities for building and managing bioconda recipes
MIT License
98 stars 133 forks source link

Simplify debugging recipe builds via `bioconda-utils build-debug` #69

Open yesimon opened 7 years ago

yesimon commented 7 years ago

Since bioconda-utils build invokes conda build in a subprocess, this is mainly feature tracking https://github.com/conda/conda-build/issues/1751.

The change here would be simple when it is supported in conda-build.

epruesse commented 5 years ago

conda now has conda debug:

https://docs.conda.io/projects/conda-build/en/latest/source/user-guide/recipes/debugging.html

It's not interactive per se, it creates the environment required to just run the commands from build.sh as I understand it.

Most of what bioconda-build build does is finding the necessary recipes to build, running linting and mulled tests, etc. The actual build is just conda build $RECIPE $CHANNEL_ARGS $BUILD_ARGS, possibly inside of the docker build environment.

So a useful bioconda-utils build-debug command probably just needs to print the channel_args and build_args in a sensible way. Right now, they are dumped if --loglevel debug is set.

Should be easy enough to implement. Any takers?

corneliusroemer commented 4 months ago

I've figured out how to manually run conda debug with the right args.

Something like:

conda debug --override-channels -c conda-forge -c bioconda -e /Users/corneliusromer/micromamba/envs/bioconda-utils/conda_build_config.yaml -e /Users/corneliusromer/micromamba/envs/bioconda-utils/lib/python3.10/site-packages/bioconda_utils/bioconda_utils-conda_build_config.yaml recipes/cmaple/