Open yesimon opened 7 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?
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/
Since
bioconda-utils build
invokesconda 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
.