diff options
| author | Egor Tensin <egor@tensin.name> | 2025-12-29 22:32:57 +0100 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2025-12-29 22:35:29 +0100 |
| commit | 03f3e841176d3b1f94fd9434943b16441493dbc1 (patch) | |
| tree | 3fc48694a9cf0fa4ecae8d872dfed916b794a00a /project/os.py | |
| parent | workflows/example_toolsets: upgrade actions (diff) | |
| download | cmake-common-03f3e841176d3b1f94fd9434943b16441493dbc1.tar.gz cmake-common-03f3e841176d3b1f94fd9434943b16441493dbc1.zip | |
drop Cygwin, it's obsolete
Diffstat (limited to 'project/os.py')
| -rw-r--r-- | project/os.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/project/os.py b/project/os.py index cb5bd44..db489ce 100644 --- a/project/os.py +++ b/project/os.py @@ -10,7 +10,6 @@ import platform class OS(Enum): WINDOWS = 'Windows' LINUX = 'Linux' - CYGWIN = 'Cygwin' MACOS = 'macOS' def __str__(self): @@ -25,8 +24,6 @@ class OS(Enum): return OS.LINUX if system == 'Darwin': return OS.MACOS - if system.startswith('CYGWIN_NT'): - return OS.CYGWIN raise NotImplementedError(f'unsupported OS: {system}') @@ -36,7 +33,7 @@ def on_windows(): def on_windows_like(): os = OS.current() - return os is OS.WINDOWS or os is OS.CYGWIN + return os is OS.WINDOWS def on_linux(): @@ -45,8 +42,4 @@ def on_linux(): def on_linux_like(): os = OS.current() - return os is OS.LINUX or os is OS.CYGWIN or os is OS.MACOS - - -def on_cygwin(): - return OS.current() is OS.CYGWIN + return os is OS.LINUX or os is OS.MACOS |
