Commit 26e4dd8c authored by Hanno Schlichting's avatar Hanno Schlichting

All Products folders as well as the zope and zope.app folders are declared as...

All Products folders as well as the zope and zope.app folders are declared as setuptools namespace packages now. This allows products to be shipped and included as standard eggs without loosing any of their special Zope2 treatment. See http://mail.zope.org/pipermail/zope-dev/2007-April/029257.html for discussion.
parent 6ad8231d
...@@ -9,6 +9,11 @@ Zope Changes ...@@ -9,6 +9,11 @@ Zope Changes
Restructuring Restructuring
- All Products folders as well as the zope and zope.app folders are
declared as setuptools namespace packages now. See
http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
for more information about namespace packages.
- ZPT: removed display of ZPT warnings since warnings were - ZPT: removed display of ZPT warnings since warnings were
removed from the zope.pagetemplate implementation removed from the zope.pagetemplate implementation
......
...@@ -11,3 +11,10 @@ ...@@ -11,3 +11,10 @@
# #
############################################################################## ##############################################################################
__ac_permissions__=() __ac_permissions__=()
# 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__)
...@@ -13,10 +13,16 @@ ...@@ -13,10 +13,16 @@
############################################################################## ##############################################################################
"""Zope Container Package """Zope Container Package
This package uses pkgutil so that the package can be split over This package uses setuptools / pkgutil so that the package can be split over
multiple directories. multiple directories.
See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
$Id$ $Id$
""" """
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__) try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
...@@ -13,6 +13,16 @@ ...@@ -13,6 +13,16 @@
############################################################################## ##############################################################################
"""Zope application package. """Zope application package.
This package uses setuptools / pkgutil so that the package can be split over
multiple directories.
See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
$Id$ $Id$
""" """
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
Additional products for your Zope instance should be installed in this Additional products for your Zope instance should be installed in this
directory. A freshly created instance should only contain this directory. A freshly created instance should only contain this
README.txt file in this directory. README.txt file and an __init__.py in this directory.
# 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__)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment