Skip to content

replace pybind11 -> nanobind #9

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

replace pybind11 -> nanobind #9

wants to merge 5 commits into from

Conversation

casperdcl
Copy link
Member

@casperdcl casperdcl commented May 13, 2025

  • replace pybind11 -> nanobind
    • update docs
    • drop Python 3.7
    • drop -Wpedantic
    • drop unneeded type checking

@casperdcl casperdcl self-assigned this May 13, 2025
@casperdcl casperdcl added the enhancement New feature or request label May 13, 2025
@casperdcl
Copy link
Member Author

This seems to work but only:

  • python>=3.8
  • without -Wpedantic

/CC @purepani

Comment on lines 17 to 19
execute_process(
COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE nanobind_ROOT)
Copy link

@purepani purepani May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just delete these lines. scikit-build-core handles adding to the library path for you(see https://scikit-build-core.readthedocs.io/en/latest/guide/getting_started.html)

Suggested change
execute_process(
COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE nanobind_ROOT)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants