[Checkins] SVN: zope.interface/trunk/src/zope/__init__.py 'setuptools' is not a dependency, reverting r97875

Baiju M baiju.m.mail at gmail.com
Sat Mar 28 16:11:50 EDT 2009


Log message for revision 98434:
  'setuptools' is not a dependency, reverting r97875
  

Changed:
  U   zope.interface/trunk/src/zope/__init__.py

-=-
Modified: zope.interface/trunk/src/zope/__init__.py
===================================================================
--- zope.interface/trunk/src/zope/__init__.py	2009-03-28 16:58:29 UTC (rev 98433)
+++ zope.interface/trunk/src/zope/__init__.py	2009-03-28 20:11:50 UTC (rev 98434)
@@ -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__)



More information about the Checkins mailing list