diff options
author | svidyuk <svidyuk@yandex-team.com> | 2025-02-12 07:11:45 +0300 |
---|---|---|
committer | svidyuk <svidyuk@yandex-team.com> | 2025-02-12 07:25:58 +0300 |
commit | 170ec5117c02f67dc3013e96e1c7368247e4fc93 (patch) | |
tree | 17903858cff63259df3af398cd035629859d232c /build/plugins/_common.py | |
parent | 42b03306a8798536579269ad3023388ee29d49cd (diff) | |
download | ydb-170ec5117c02f67dc3013e96e1c7368247e4fc93.tar.gz |
Dead helpers in _common for ymake plugins
commit_hash:5c87206b7257ee7f1d8ad88378fb2152d2b2f5ac
Diffstat (limited to 'build/plugins/_common.py')
-rw-r--r-- | build/plugins/_common.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/build/plugins/_common.py b/build/plugins/_common.py index 7925543cd2..e116d158f6 100644 --- a/build/plugins/_common.py +++ b/build/plugins/_common.py @@ -1,5 +1,4 @@ import six -import sys import hashlib import base64 @@ -61,15 +60,6 @@ def tobuilddir(fname): return fname -def before(s, ss): - p = s.find(ss) - - if p == -1: - return s - - return s[:p] - - def sort_by_keywords(keywords, args): flat = [] res = {} @@ -115,30 +105,10 @@ def resolve_common_const(path): return path -def resolve_to_abs_path(path, source_root, build_root): - if path.startswith('$S') and source_root is not None: - return path.replace('$S', source_root, 1) - if path.startswith('$B') and build_root is not None: - return path.replace('$B', build_root, 1) - return path - - -def resolve_to_ymake_path(path): - return resolve_to_abs_path(path, '${ARCADIA_ROOT}', '${ARCADIA_BUILD_ROOT}') - - def get(fun, num): return fun()[num][0] -def make_tuples(arg_list): - def tpl(): - for x in arg_list: - yield (x, []) - - return list(tpl()) - - def resolve_includes(unit, src, paths): return unit.resolve_include([src] + paths) if paths else [] @@ -169,13 +139,6 @@ def skip_build_root(x): return x -def get_interpreter_path(): - interpreter_path = [sys.executable] - if 'ymake' in interpreter_path[0]: - interpreter_path.append('--python') - return interpreter_path - - def filter_out_by_keyword(test_data, keyword): def _iterate(): i = 0 |