[Distutils] empty namespace package

PJ Eby pje at telecommunity.com
Sun Dec 23 16:35:47 CET 2012

On Sun, Dec 23, 2012 at 4:04 AM, Václav Šmilauer <eu at doxos.eu> wrote:
> I would like to declare empty namespace package "A.B" inside the setup.py of
> "A", but I am getting
>     error in A setup command: Distribution contains no modules or package
> for namespace package "A.B".

You need an __init__.py for A.B, even if that __init__.py is empty
except apart from the namespace declaration.  (Which is always

> I am using setuptools 0.6.28.

Technically, you're using Distribute 0.6.28.  Setuptools doesn't have
a release with that version number.  ;-)

More information about the Distutils-SIG mailing list