-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support recursive stubgen (#44)
Implements the `recursive` and `output_directory` options of nanobind's stubgen, to allow stub generation for submodules in extensions. Left to clarify is how to make generated stubs have the correct name in recursive mode - to that end, a shutil-based workaround was introduced in the stubgen script, fixing up the path name and copying the stub within the bindir. This likely has to be done upstream, but requires a better understanding of file name generation in recursive mode, particularly depending on the working directory of the stubgen invoker.
- Loading branch information
Showing
2 changed files
with
48 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters