Closed ysitu closed 9 years ago
Having a metis.py
was better already because it also keeps us away from the possibly of a circular import since things inside __init__.py
always gets imported whenever a nxmetis.xyz
is imported.
Let's not go that far for this particular issue. Wrapping _metis
alone suffices.
When building documentation,
autodoc
attempts to importnxmetis
. Ifnxmetis._metis
is not built, import will fail and cause errors. One solution is to modify imports of_metis
in__init__.py
andtypes.py
to readBut I think that it is probably better to create a
metis.py
that imports stuff from_metis
and import
metis
instead of_metis
in__init__.py
andtypes.py
.