Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Boost with Pybind11 + Add checking if BVH/maps built + Add C API docs #55

Merged
merged 3 commits into from
Sep 5, 2023

Conversation

gtker
Copy link

@gtker gtker commented Sep 5, 2023

Fixes #31.
Fixes #51.
Fixes #52.

If this PR is too big I can split it up into individual parts, but the commits are completely separate so I didn't think it would matter.

I went for including Pybind11 by source because I don't think there's really anyone who has it installed, and it's going to be a pain on windows.

I would like to get the Python bindings on PyPI for easier install and usage. I'm intending on just setting up the CI so that it can push to PyPI when a commit is tagged with a version or something, would you have anything against this?

Gtker added 3 commits September 5, 2023 19:06
Fixes namreeb#31.

pybind11 appears to work with both Python 2 and 3.

pybind11 appears to name the final shared objects as
mapbuild.cpython-310-x86_64-linux-gnu.so
instead of just
mapbuild.so

But Python appears to handle this just fine.
@gtker
Copy link
Author

gtker commented Sep 5, 2023

Forgot to make smoke_test.py use the new functions.

@namreeb
Copy link
Owner

namreeb commented Sep 5, 2023

This all looks good to me, thanks! I have no problem with submitting the package to PyPI. Are you willing to create another MR with the appropriate CI change? Or is this something I'll have to setup?

@namreeb namreeb merged commit 3d094ee into namreeb:master Sep 5, 2023
2 checks passed
@gtker
Copy link
Author

gtker commented Sep 6, 2023

This all looks good to me, thanks! I have no problem with submitting the package to PyPI. Are you willing to create another MR with the appropriate CI change? Or is this something I'll have to setup?

I have one coming right up but you'll need a PyPI account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants