Skip to content

Commit

Permalink
Use StanadloneExe for binary type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoesters committed Oct 1, 2024
1 parent fd0a8b0 commit df36928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constructor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = ""
Expand Down

0 comments on commit df36928

Please sign in to comment.