From de1fa0fddfba73a48f6ad7a5b72234697bb05e37 Mon Sep 17 00:00:00 2001 From: Grigori Fursin Date: Tue, 17 Sep 2024 14:02:49 +0200 Subject: [PATCH] V2.3.6: fixed "cm init" on Windows (do not check wget and curl - managed via CM scripts) --- cm/CHANGES.md | 3 +++ cm/cmind/__init__.py | 2 +- cm/cmind/repo/automation/core/module.py | 16 ++++++++++------ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/cm/CHANGES.md b/cm/CHANGES.md index 66058624b..42e1846be 100644 --- a/cm/CHANGES.md +++ b/cm/CHANGES.md @@ -1,3 +1,6 @@ +## V2.3.6 + - fixed "cm init" on Windows (do not check wget and curl - managed via CM scripts) + ## V2.3.5 - added "cm init" to check system deps and pull mlcommons@cm4mlops by default - fixed branch checkout in "cm pull repo" diff --git a/cm/cmind/__init__.py b/cm/cmind/__init__.py index c26060cec..b9d8273f3 100644 --- a/cm/cmind/__init__.py +++ b/cm/cmind/__init__.py @@ -2,7 +2,7 @@ # # Written by Grigori Fursin -__version__ = "2.3.5" +__version__ = "2.3.6" from cmind.core import access from cmind.core import error diff --git a/cm/cmind/repo/automation/core/module.py b/cm/cmind/repo/automation/core/module.py index 6f6a2afad..8724e50aa 100644 --- a/cm/cmind/repo/automation/core/module.py +++ b/cm/cmind/repo/automation/core/module.py @@ -54,13 +54,17 @@ def install_system_packages(self, quiet): if not git_status: packages.append("git") - wget_status = self.command_exists('wget') - if not wget_status: - packages.append("wget") - curl_status = self.command_exists('curl') - if not curl_status: - packages.append("curl") + # wget and curl are managed via CM scripts on Windows + if os.name != 'nt': + + wget_status = self.command_exists('wget') + if not wget_status: + packages.append("wget") + + curl_status = self.command_exists('curl') + if not curl_status: + packages.append("curl") name='venv'