What I am trying to do?
Have one large package with several installable parts, which need to work together, but specific parts can be used on their own. I decided to use namespace package, as it seems to do what I want.
Problem
How do I actually build a namespace package?
My example
I have a following namespace package, with each of the subpackages containing some modules not listed here. I am using setuptools
.
.
|-mypkg
|- core
| |- setup.py
| |- mynmspc
| |- util
|- compute
| |- setup.py
| |- mynmspc
| |- funcs
|- plotting
|- setup.py
|- mynmspc
|- graphs
- setup.py
Now I can build a wheel of this package python setup.py bdist_wheel
. However if I want to have e.g. core
subpackage installable by itself do I have to create another wheel for it? What would be the best practice if I would like to give users option to either install the whole package or any of the listed subpackages? Is there a way to automatically build all nested wheels of the main package?