By default the Wrapping/Python/vtkmodules/__init__.py.in has contains no modules since it is populated during configuration time. However, autodoc2 needs an initialized __init__.py to generate documentation. We use a local copy which is extracted from vtk-9.2.6-cp311-cp311-win_amd64.wh
(path)
| 141 | |
| 142 | |
| 143 | def add_init_file(path): |
| 144 | """By default the Wrapping/Python/vtkmodules/__init__.py.in has contains |
| 145 | no modules since it is populated during configuration time. However, |
| 146 | autodoc2 needs an initialized __init__.py to generate documentation. We use |
| 147 | a local copy which is extracted from vtk-9.2.6-cp311-cp311-win_amd64.whl. |
| 148 | @todo we need to make this automatic. |
| 149 | """ |
| 150 | shutil.copy("vtkmodules.__init__.py", path) |
| 151 | |
| 152 | |
| 153 | # ----------------------------------------------------------------------------------------- |