summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBarry Warsaw2009-09-25 14:15:12 -0400
committerBarry Warsaw2009-09-25 14:15:12 -0400
commit4761ded7d72ada676c61eca523c67a25167e14c8 (patch)
tree9bf34c090863954e0e9f51fe7a86b3016d14a231 /src
parent7e9654ddc443ae5c53da62cdd144c23b7e41877e (diff)
downloadmailman-4761ded7d72ada676c61eca523c67a25167e14c8.tar.gz
mailman-4761ded7d72ada676c61eca523c67a25167e14c8.tar.zst
mailman-4761ded7d72ada676c61eca523c67a25167e14c8.zip
Play much more nicely with buildout, and use a better mechanism for declaring
the namespace package. This gets things working on a fresh Ubuntu Karmic installation.
Diffstat (limited to 'src')
-rw-r--r--src/mailman/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mailman/__init__.py b/src/mailman/__init__.py
index 8c5301b0d..e5f46e3d4 100644
--- a/src/mailman/__init__.py
+++ b/src/mailman/__init__.py
@@ -29,3 +29,12 @@ __all__ = [
import warnings
warnings.filterwarnings(
'ignore', category=DeprecationWarning, module='lazr.restful._resource')
+
+
+# This is a namespace package.
+try:
+ import pkg_resources
+ pkg_resources.declare_namespace(__name__)
+except ImportError:
+ import pkgutil
+ __path__ = pkgutil.extend_path(__path__, __name__)