Skip to content

Commit

Permalink
chore(client): fix environment check for macOS environment (#3137)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianweidut authored May 25, 2024
1 parent 745eb5f commit 48f1436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# importlib-metadata supplies a backport of 'importlib.metadata'; Python 3.8 makes 'importlib' part of the standard lib.
"importlib-metadata>=4.0.0, <=4.2.0;python_version < '3.8'",
"attrs>=21.4.0",
"pyyaml==6.0",
"pyyaml>=6.0",
"cattrs>=1.7.1",
"requests>=2.1.0",
"requests-toolbelt>=0.9.0",
Expand Down
2 changes: 1 addition & 1 deletion client/starwhale/mngt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _check_docker_compose() -> str:
out = subprocess.check_output(
["docker", "compose", "version", "--short"], stderr=subprocess.STDOUT
)
return out.decode().strip()
return out.decode().strip().split('-')[0]

dependencies: t.List[_Dependency] = [
_Dependency(
Expand Down

0 comments on commit 48f1436

Please sign in to comment.