[wdmmg-dev] wdmmgext namespace packages

Carsten Senger senger at rehfisch.de
Fri Mar 18 10:38:06 UTC 2011


The wdmmgext namespace is used by wdmmg-ext, wdmmg-legacy and wdmmg-treemap.
But wdmmg-ext does not declare it as a namespace package in
wdmmgext/__init__.py. That hides all other subpackages that try to use the
same namespace. If all three packages are installed the packages
wdmmgext.legacy and wdmmgext.treemap are not importable. Even so the plugin
system works with pkg_resources magic this is can unexpectedly break.

Is it ok to
* add a declare_namespace() call to wdmmg-ext/wdmmgext/__init__.py and
* move wdmmg-ext/wdmmg/tests into wdmmg-ext/wdmmgext/load/tests

<http://packages.python.org/distribute/setuptools.html#namespace-packages>
describes the constaints for namespace packages.

..Carsten




More information about the openspending-dev mailing list