diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
commit | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch) | |
tree | 506dac10f5df94fab310584ee51b24fc5a081c22 /build/plugins/pybuild.py | |
parent | 2d37894b1b037cf24231090eda8589bbb44fb6fc (diff) | |
download | ydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/plugins/pybuild.py')
-rw-r--r-- | build/plugins/pybuild.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py index f32a2d39a0..b2f47fc890 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -483,19 +483,19 @@ def onpy_srcs(unit, *args): unit.onresource(res) add_python_lint_checks(unit, 2, [path for path, mod in pys] + unit.get(['_PY_EXTRA_LINT_FILES_VALUE']).split()) - use_vanilla_protoc = unit.get('USE_VANILLA_PROTOC') == 'yes' - if use_vanilla_protoc: - cpp_runtime_path = 'contrib/libs/protobuf_std' - py_runtime_path = 'contrib/python/protobuf_std' - builtin_proto_path = cpp_runtime_path + '/' + BUILTIN_PROTO - else: - cpp_runtime_path = 'contrib/libs/protobuf' - py_runtime_path = 'contrib/python/protobuf' - builtin_proto_path = cpp_runtime_path + '/' + BUILTIN_PROTO + use_vanilla_protoc = unit.get('USE_VANILLA_PROTOC') == 'yes' + if use_vanilla_protoc: + cpp_runtime_path = 'contrib/libs/protobuf_std' + py_runtime_path = 'contrib/python/protobuf_std' + builtin_proto_path = cpp_runtime_path + '/' + BUILTIN_PROTO + else: + cpp_runtime_path = 'contrib/libs/protobuf' + py_runtime_path = 'contrib/python/protobuf' + builtin_proto_path = cpp_runtime_path + '/' + BUILTIN_PROTO if protos: - if not upath.startswith(py_runtime_path) and not upath.startswith(builtin_proto_path): - unit.onpeerdir(py_runtime_path) + if not upath.startswith(py_runtime_path) and not upath.startswith(builtin_proto_path): + unit.onpeerdir(py_runtime_path) unit.onpeerdir(unit.get("PY_PROTO_DEPS").split()) @@ -511,7 +511,7 @@ def onpy_srcs(unit, *args): unit.onpeerdir(['kernel/gazetteer/proto']) if evs: - unit.onpeerdir([cpp_runtime_path]) + unit.onpeerdir([cpp_runtime_path]) unit.on_generate_py_evs_internal([path for path, mod in evs]) unit.onpy_srcs([ev_arg(path, mod, unit) for path, mod in evs]) |