src/PythonModule.cpp gets bulky
delaere opened this issue · comments
Probably the simplest thing to do is to just call functions from a
central module definition. e.g.//file 1
BOOST_PYTHON_MODULE(poc)
{
wrapFoo();
wrapBar();
wrapBaz();
}//file 2
void wrapFoo() {
class_<...>(...);
}//file 3
void wrapBar() {
class_<...>(...);
}//file 4
void wrapBaz() {
class_<...>(...);
}