[Python-Dev] PEP 382: Namespace Packages

Chris Withers chris at simplistix.co.uk
Thu Apr 2 22:18:57 CEST 2009

andrew cooke wrote:
>> I now want to distribute large optional chunks separately, but ideally
>> so that the following will will work:
>> from mortar.rbd import ...
>> from mortar.zodb import ...
>> from mortar.wsgi import ...

> i may be misunderstanding, but i think you can already do this.
> in lepl i have code spread across many modules (equivalent to your
> mortar.rbd, i have lepl.matchers etc).  then in lepl/__init__.py i import
> those and define __this__ to export them into the lepl namespace.  so you
> can import either do:

Okay, but do you:

- distribute lepl.matchers in a seperate distribution to lepl?

- have actual code in the lepl package?



Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk

More information about the Python-list mailing list