Closed nurpax closed 2 months ago
This is not a nanobind issue. CMake places extensions into configuration-specific subdirectories in MSVC builds.
I meant the issue as an enhancement idea for docs, not a bug in nanobind. But no problem, now I know where to start the Python interpreter.
Could you make a PR with the desired change to the documentation in this case?
Problem description
Following the docs in https://nanobind.readthedocs.io/en/latest/basics.html, I created a directory with the following files:
I followed the docs to build it. It builds fine but import fails:
However, it works if I cd into
build\Debug
instead:Not sure if this happens only on Windows but it wasn't immediately obvious what the problem is.
Perhaps this could be called out in the docs?
Reproducible example code
my_ext.cpp: