Skip to content

Switch Python bindings to pybind11 #2628

@nilsnolde

Description

@nilsnolde

I had serious trouble compiling boost.python for fedora's mingw64 toolchain, most is documented on SO. In the end, it compiled, but then I couldn't get valhalla's bindings to work on Windows in a cross-compiled python, still complains about missing DLLs even though I pulled all relevant ones next to the python lib.

If you're ok with it I'd like to switch to the header-only pybind11 to generate the bindings instead of boost.python. I'd include it in third-party as a submodule. Already tried a minimum example in cross-compilation and it worked easily on Windows.

Of course I'll keep the API the same (for now anyways, eventually I'd like to make it more pythonic, more a v4 plan I guess).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions