diff options
author | spreis <spreis@yandex-team.com> | 2024-04-10 07:25:47 +0300 |
---|---|---|
committer | spreis <spreis@yandex-team.com> | 2024-04-10 07:38:11 +0300 |
commit | 258f20d9a5d3556791dba211f871087f8a45b49e (patch) | |
tree | 6a74601518e3126573da65b38dc7a05563a2e0f3 | |
parent | 69d061541bc434013f5d231ffbc701f6af01fd6e (diff) | |
download | ydb-258f20d9a5d3556791dba211f871087f8a45b49e.tar.gz |
Make build PY3_LIBRARY
cb9cbc829b52a8e064b3a67202396cb7b7523eba
-rwxr-xr-x | build/ymake_conf.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py index df21e7d47a..1d0dcc2647 100755 --- a/build/ymake_conf.py +++ b/build/ymake_conf.py @@ -18,6 +18,8 @@ import tempfile import six +from functools import total_ordering + logger = logging.getLogger(__name__ if __name__ != '__main__' else 'ymake_conf.py') @@ -82,6 +84,7 @@ class ConfigureError(Exception): pass +@total_ordering class Platform(object): def __init__(self, name, os, arch): """ @@ -273,8 +276,8 @@ class Platform(object): def __eq__(self, other): return (self.name, self.os, self.arch) == (other.name, other.os, other.arch) - def __cmp__(self, other): - return cmp((self.name, self.os, self.arch), (other.name, other.os, other.arch)) + def __lt__(self, other): + return (self.name, self.os, self.arch) < (other.name, other.os, other.arch) def __hash__(self): return hash((self.name, self.os, self.arch)) @@ -2406,7 +2409,7 @@ class Cuda(object): return False if host != target: - if not(host.is_linux_x86_64 and target.is_linux_armv8): + if not (host.is_linux_x86_64 and target.is_linux_armv8): return False if not self.cuda_version.from_user: return False |