aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorproskurnev <proskurnev@yandex-team.com>2025-03-04 09:45:39 +0300
committerproskurnev <proskurnev@yandex-team.com>2025-03-04 10:47:37 +0300
commitccddb3f12b8c52ccf11e911adb6d03d8b1a2d961 (patch)
treeade9a6d1d1ce5ae77f88a60bfdc89e9eda82beb0
parentcf732f241b03d3c57d89336a3709496bb9e181e2 (diff)
downloadydb-ccddb3f12b8c52ccf11e911adb6d03d8b1a2d961.tar.gz
Fix PY_REGISTER mangling case for BOOST_PYTHON_MODULE
commit_hash:28cef45827cfd222861ee488a02b8266f42b4dee
-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 9fa447edf0..441579c561 100644
--- a/build/plugins/pybuild.py
+++ b/build/plugins/pybuild.py
@@ -725,6 +725,8 @@ def onpy_register(unit, *args):
unit.oncflags(['-DPyInit_{}=PyInit_{}'.format(shortname, mangle(name))])
else:
unit.oncflags(['-Dinit{}=init{}'.format(shortname, mangle(name))])
+ # BOOST_PYTHON_MODULE case
+ unit.oncflags(['-Dinit_module_{}=init_module_{}'.format(shortname, mangle(name))])
def py_main(unit, arg):