Skip to content
Discussion options

You must be logged in to vote

Hey! Although it does not use vscode's CMake integration, there is an example project that shows how to set up CMake to build nanobind extensions with scikit-build-core: https://github.com/wjakob/nanobind_example (in short: it uses FindPython)

Otherwise, to get Python's include path, you can use python3 -c "import sysconfig; print(sysconfig.get_path('include'))", which should be static unless you change your venv's Python version frequently.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jacopoabramo
Comment options

@jacopoabramo
Comment options

@nicholasjng
Comment options

Answer selected by jacopoabramo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants