From 4761ded7d72ada676c61eca523c67a25167e14c8 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 25 Sep 2009 14:15:12 -0400 Subject: 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. --- src/mailman/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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__) -- cgit v1.2.3-70-g09d2