From df369280d4c59a493e06d4ffc54df17bf0319eed Mon Sep 17 00:00:00 2001 From: Marco Esters Date: Tue, 1 Oct 2024 11:09:16 -0700 Subject: [PATCH] Use StanadloneExe for binary type checking --- constructor/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/constructor/main.py b/constructor/main.py index d65252b0a..5f8a95429 100644 --- a/constructor/main.py +++ b/constructor/main.py @@ -201,9 +201,9 @@ def main_build(dir_path, output_dir='.', platform=cc_platform, # Add --no-rc option to CONDA_EXE command so that existing # .condarc files do not pollute the installation process. - if exe_name == "conda-standalone" and Version(exe_version) >= Version("24.9.0"): + if exe_type == StandaloneExe.CONDA and exe_version and exe_version >= Version("24.9.0"): info["_ignore_condarcs_arg"] = "--no-rc" - elif exe_name == "micromamba": + elif exe_type == StandaloneExe.MAMBA: info["_ignore_condarcs_arg"] = "--no-rc" else: info["_ignore_condarcs_arg"] = ""