Skip to content
Snippets Groups Projects
Commit f64a36c4 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[build] Do not overwrite conda-build root dir if already configured

The condarc file can contain the root-dir entry which state where
conda-build should run and store its artifacts. Don't set croot
if that setting is found.
parent b397a3d2
No related branches found
No related tags found
1 merge request!25Do not overwrite conda-build root dir if already configured
Pipeline #27535 passed
......@@ -637,7 +637,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment