diff --git a/collective/__init__.py b/collective/__init__.py index 792d600..f48ad10 100644 --- a/collective/__init__.py +++ b/collective/__init__.py @@ -1 +1,6 @@ -# +# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages +try: + __import__('pkg_resources').declare_namespace(__name__) +except ImportError: + from pkgutil import extend_path + __path__ = extend_path(__path__, __name__) diff --git a/collective/transcode/__init__.py b/collective/transcode/__init__.py index 792d600..f48ad10 100644 --- a/collective/transcode/__init__.py +++ b/collective/transcode/__init__.py @@ -1 +1,6 @@ -# +# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages +try: + __import__('pkg_resources').declare_namespace(__name__) +except ImportError: + from pkgutil import extend_path + __path__ = extend_path(__path__, __name__) diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index 5a4279e..34f20b5 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -2,6 +2,7 @@ ----------------- - Disable directory listing [Gagaro] + - Specify namespace packages [jean] 0.12 (2012-12-03) ----------------- diff --git a/setup.py b/setup.py index d7ce509..c0b572b 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() -version = '0.12' +version = '0.13' long_description = ( read('README.txt') @@ -41,6 +41,7 @@ def read(*rnames): author_email='we@unweb.me', url='https://github.com/plumi/collective.transcode.daemon', license='GPL', + namespace_packages=['collective', 'collective.transcode'], packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False,