diff --git a/bob/devtools/build.py b/bob/devtools/build.py index d71e6bfb694e197a7e88ab518c07f58ad3a58b56..0bbc66d27aadffef9380f4b95d34f685a1012395 100644 --- a/bob/devtools/build.py +++ b/bob/devtools/build.py @@ -599,7 +599,10 @@ if __name__ == '__main__': condarc_options = yaml.load(f) # dump packages at conda_root - condarc_options['croot'] = os.path.join(args.conda_root, 'conda-bld') + prefix = get_env_directory(os.environ['CONDA_EXE'], 'base') + if condarc_options.get('conda-build', {}).get('root-dir') is None: + condarc_options['croot'] = os.path.join(prefix, 'conda-bld') + # builds all dependencies in the 'deps' subdirectory - or at least checks # these dependencies are already available; these dependencies go directly to