I have an package named networkx-metis which has the following tree structure
networkx-metis/
setup.py
networkx/
__init__.py
addons/
__init__.py
metis/
metis.py
networkx.addons.metis is supposed to be installed as a namespace package in networkx core package. The two __init__.py above contains the single line of code
__import__('pkg_resources').declare_namespace(__name__)
Now I have some specific questions,
- What should be the changes in the
networkxcore package? Where should I put empty__init__.pyfiles? - What should be the value of
namespace_packagesinsetup()of thesetup.pyofnetworkx-metis?
Add a
__init__.pyinsidenetworkx/addons/with the single line of code in itIt should be