Skip to content

Commit

Permalink
Simplify logger warning logic
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoesters committed Oct 1, 2024
1 parent 6e298c8 commit 0715a30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions constructor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ def main_build(dir_path, output_dir='.', platform=cc_platform,

if exe_type is None or exe_version is None:
logger.warning(
"Could not identify conda-standalone / micromamba version (%s). "
"Could not identify conda-standalone / micromamba version. "
"Will assume it is compatible with shortcuts."
)
if sys.platform != "win32" and exe_type is not None and (
exe_type == StandaloneExe.MAMBA or exe_version < Version("23.11.0")
elif sys.platform != "win32" and (
exe_type != StandaloneExe.CONDA or exe_version < Version("23.11.0")
):
logger.warning("conda-standalone 23.11.0 or above is required for shortcuts on Unix.")
info['_enable_shortcuts'] = "incompatible"
Expand Down

0 comments on commit 0715a30

Please sign in to comment.