summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBaiju Muthukadan <baiju.m.mail@gmail.com>2009-03-28 20:11:50 +0000
committerBaiju Muthukadan <baiju.m.mail@gmail.com>2009-03-28 20:11:50 +0000
commitf7272e2562d236d8b718eda82586765497ff020f (patch)
tree27fab3d4a33de55ead0778b2046bc2ee2b7dc37e /src
parentb4f49df5fbfc3d1adcdeb755278b31f7a4e56800 (diff)
downloadzope-interface-f7272e2562d236d8b718eda82586765497ff020f.tar.gz
'setuptools' is not a dependency, reverting r97875
Diffstat (limited to 'src')
-rw-r--r--src/zope/__init__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/zope/__init__.py b/src/zope/__init__.py
index de40ea7..2e2033b 100644
--- a/src/zope/__init__.py
+++ b/src/zope/__init__.py
@@ -1 +1,7 @@
-__import__('pkg_resources').declare_namespace(__name__)
+# this is a namespace package
+try:
+ import pkg_resources
+ pkg_resources.declare_namespace(__name__)
+except ImportError:
+ import pkgutil
+ __path__ = pkgutil.extend_path(__path__, __name__)