[Zope3-checkins] SVN: Zope3/branches/3.2/ - Declare the zope top-level package as a namespace package if

Sidnei da Silva sidnei at enfoldsystems.com
Wed Jan 25 12:36:19 EST 2006


Log message for revision 41437:
  
        - Declare the zope top-level package as a namespace package if
          pkg_resources is available. This will enable distribution of
          zope.* packages as individual eggs.
  

Changed:
  U   Zope3/branches/3.2/doc/CHANGES.txt
  U   Zope3/branches/3.2/src/zope/__init__.py

-=-
Modified: Zope3/branches/3.2/doc/CHANGES.txt
===================================================================
--- Zope3/branches/3.2/doc/CHANGES.txt	2006-01-25 15:53:00 UTC (rev 41436)
+++ Zope3/branches/3.2/doc/CHANGES.txt	2006-01-25 17:36:18 UTC (rev 41437)
@@ -8,6 +8,12 @@
 
   since Zope 3.2.0b3
 
+    New features
+
+      - Declare the "zope" top-level package as a namespace package if
+        "pkg_resources" is available. This will enable distribution of
+        "zope.*" packages as individual eggs.
+
     Bug Fixes
 
       - zope.i18n.interpolate:

Modified: Zope3/branches/3.2/src/zope/__init__.py
===================================================================
--- Zope3/branches/3.2/src/zope/__init__.py	2006-01-25 15:53:00 UTC (rev 41436)
+++ Zope3/branches/3.2/src/zope/__init__.py	2006-01-25 17:36:18 UTC (rev 41437)
@@ -13,3 +13,10 @@
 ##############################################################################
 #
 # This file is necessary to make this directory a package.
+
+try:
+    # Declare this a namespace package if pkg_resources is available.
+    import pkg_resources
+    pkg_resources.declare_namespace('zope')
+except ImportError:
+    pass



More information about the Zope3-Checkins mailing list