Ultralytics Code Refactor https://ultralytics.com/actions (#16047)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
95d54828bb
commit
ac2c2be8f3
12 changed files with 45 additions and 62 deletions
|
|
@ -226,13 +226,12 @@ def check_version(
|
|||
if not required: # if required is '' or None
|
||||
return True
|
||||
|
||||
if "sys_platform" in required: # i.e. required='<2.4.0,>=1.8.0; sys_platform == "win32"'
|
||||
if (
|
||||
(WINDOWS and "win32" not in required)
|
||||
or (LINUX and "linux" not in required)
|
||||
or (MACOS and "macos" not in required and "darwin" not in required)
|
||||
):
|
||||
return True
|
||||
if "sys_platform" in required and ( # i.e. required='<2.4.0,>=1.8.0; sys_platform == "win32"'
|
||||
(WINDOWS and "win32" not in required)
|
||||
or (LINUX and "linux" not in required)
|
||||
or (MACOS and "macos" not in required and "darwin" not in required)
|
||||
):
|
||||
return True
|
||||
|
||||
op = ""
|
||||
version = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue