Skip to content

Add nanobind stubgen#4220

Draft
jhale wants to merge 19 commits into
mainfrom
jhale/nanobind-autogen-stubs
Draft

Add nanobind stubgen#4220
jhale wants to merge 19 commits into
mainfrom
jhale/nanobind-autogen-stubs

Conversation

@jhale
Copy link
Copy Markdown
Member

@jhale jhale commented May 26, 2026

Adds automatic nanobind stubgen for dolfinx.cpp and adds a way to disable automatic generation - I predict stubgen could cause some problems in particular build systems, so good to be able to disable it.

@jhale
Copy link
Copy Markdown
Member Author

jhale commented May 27, 2026

Merged and supersedes #4101

@jhale
Copy link
Copy Markdown
Member Author

jhale commented May 27, 2026

Unsurprisingly Found 365 errors in 18 files (checked 29 source files) - unlikely to be merged before release of 0.11.

@jhale
Copy link
Copy Markdown
Member Author

jhale commented May 27, 2026

The stubgen fails silently on Windows as it is unable to import dolfinx.cpp. The tests run fine and the same strategy works with Basix. Difficult to debug without local environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants