Deploy optional package with distutils and pip

I want to create a set of interconnected packages in Python. I would like all of them to be in the same package, but installed as separate components.

So, for example, installing the base package will provide mypackage , but nothing will be in mypackage.subpackage until I install it separately.

Is this possible with distutils and pip?

+4
source share
1 answer

What you are looking for is called "namespace packages", see this SO question

+5
source

All Articles