[Zope-dev] multiple packages in the same namespace

Christian Theune ct at gocept.com
Fri Feb 6 08:33:02 EST 2009


On Fri, 06 Feb 2009 12:35:09 +0000
Chris Withers <chris at simplistix.co.uk> wrote:

> Jim Fulton wrote:
> > zope.configuration isn't a namespace package.  It is simply a
> > package with subpackages.
> 
> Does setuptools support something like:
> 
> "packagea":
> packagea/__init__.py
> packagea/amodule.py
> 
> "packagea.something":
> packagea/__init__.py
> packagea/something/__init__.py
> packagea/something/bmodule.py
> 
> If so, which packagea/__init__.py gets used?

It does. You're supposed to assume that neither __init__.py gets
used.


-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development


More information about the Zope-Dev mailing list