I hope this question is not too easy or generic for this forum!
What I do not understand is what the recommended way is to split a large python project into several parts so that some parts of the project can installed separately. In addition it would be good if those optional parts could register themselves with the main package and could live as subpackages of the main package.
So lets say there is already some package “mainproject” which can be installed using
pip install mainproject and which provides
Now at a later time user wants to install
mainproject_sub2 and this should add
Is this possible and how to do it best?
I guess my question really is if and how one can distribute a package that adds modules to another existing package upon installation, or how to accomplish something that is very close to this.