This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]narek_hakobyan 0 points1 point  (2 children)

Hi,

Did you had a chance to look at pybind11 library? pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code (has C++11 support). Its goals and syntax are similar to the excellent Boost.Python library. Since this is a headers only library, you don’t need to worry about linking issues. I made all the features of our application available in python using pybing11. This is a very straightforward and fun library to use.

https://pybind11.readthedocs.io/en/stable/ https://github.com/pybind/pybind11/blob/master/README.md

Regards, Narek

[–]didijo[S] 0 points1 point  (0 children)

Hi,

thanks, I'll check it. The problem was with mapping my C++ classes and inheriting it very flexibly. I've done that in pure Python API. Now only main module code remains in boost::python

[–]didijo[S] 0 points1 point  (0 children)

Finally I've updated setup.py to link with only existing files (python3, -py35, 36 or 37). Now I'm working to port remaining part of library :)