The setuptools documentation is very explicit about adding code to __init__.py
files from namespaces:
You must NOT include any other code and data in a namespace package's
__init__.py
. Even though it may appear to work during development, or when projects are installed as .egg files, it will not work when the projects are installed using "system" packaging tools -- in such cases the__init__.py
files will not be installed, let alone executed.
Yet, I do not understand what these "system" packaging tools are. What are they? How could I reproduce this situation where the __init__.py
files are gone?