aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins
diff options
context:
space:
mode:
authorspreis <spreis@yandex-team.com>2023-10-13 06:41:33 +0300
committerspreis <spreis@yandex-team.com>2023-10-13 07:08:24 +0300
commit94d77db087cf83003ca0c6f276dbb827099688ad (patch)
tree1adeb0e4918307588f1fad4898b7d3e2deca69dc /build/plugins
parent7bf454679ed7688910a47b369875c0ebdd77f53c (diff)
downloadydb-94d77db087cf83003ca0c6f276dbb827099688ad.tar.gz
support dash in Python version of PROTO_LIBRARY
Diffstat (limited to 'build/plugins')
-rw-r--r--build/plugins/pybuild.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py
index b91fd61a17..1823b82387 100644
--- a/build/plugins/pybuild.py
+++ b/build/plugins/pybuild.py
@@ -373,6 +373,8 @@ def onpy_srcs(unit, *args):
mod_root_path = root_rel_path[: -(len(path) + 1)]
py_namespaces.setdefault(mod_root_path, set()).add(ns if ns else '.')
mod = ns + mod_name
+ if in_proto_library:
+ mod = mod.replace('-', '_')
if main_mod:
py_main(unit, mod + ":main")