diff --git a/src/py65/__init__.py b/src/py65/__init__.py index de40ea7..f48ad10 100644 --- a/src/py65/__init__.py +++ b/src/py65/__init__.py @@ -1 +1,6 @@ -__import__('pkg_resources').declare_namespace(__name__) +# 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__)