Commit ad19e9c7 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

[create] use mamba

parent 11229f69
......@@ -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}) - "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment