Skip to content

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.

3 participants