From ad19e9c77888f9c1449578bfe7fa1018118e4cca Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Tue, 5 Oct 2021 13:32:53 +0200 Subject: [PATCH] [create] use mamba --- bob/devtools/scripts/create.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bob/devtools/scripts/create.py b/bob/devtools/scripts/create.py index 834525db..3751b372 100644 --- a/bob/devtools/scripts/create.py +++ b/bob/devtools/scripts/create.py @@ -204,6 +204,7 @@ def create( this app and use the flag `--overwrite` to re-create from scratch the development environment. """ + import pathlib recipe_dir = recipe_dir or os.path.join(os.path.realpath("."), "conda") @@ -211,7 +212,9 @@ def create( raise RuntimeError("The directory %s does not exist" % recipe_dir) # this is not used to conda-build, just to create the final environment - conda = os.environ.get("CONDA_EXE") + conda = pathlib.Path(os.environ.get("CONDA_EXE")) + # replace conda with mamba + conda = str(conda.parent / "mamba") if conda is None: raise RuntimeError( "Cannot find `conda' executable (${CONDA_EXEC}) - " -- GitLab