summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-04-14 19:13:24 +0000
committerPJ Eby <distutils-sig@python.org>2006-04-14 19:13:24 +0000
commit52dcb6d1c888a4a7a047f380783f572055a175dc (patch)
treee7f74685afa9a96c1c8b6658f2bba093b66813d6 /docs
parent2fbffe9bf4bf6c71c5bbe94e3386d69a2db5f37c (diff)
downloadpython-setuptools-git-52dcb6d1c888a4a7a047f380783f572055a175dc.tar.gz
Don't eagerly import namespace packages. This was the big reason for
branching to 0.7 now, as I wanted this wart gone before anything went into Python 2.5. But it's gone now, yay! --HG-- extra : source : f3c5c19842064dd4a497baef0171aac54464a484 extra : amend_source : 3f79e71eedfc5f37a1813967bb53cf9d92a11919
Diffstat (limited to 'docs')
-rw-r--r--docs/pkg_resources.txt17
1 files changed, 10 insertions, 7 deletions
diff --git a/docs/pkg_resources.txt b/docs/pkg_resources.txt
index 8dd3e9ab..18b68db7 100644
--- a/docs/pkg_resources.txt
+++ b/docs/pkg_resources.txt
@@ -137,13 +137,16 @@ Namespace Package Support
A namespace package is a package that only contains other packages and modules,
with no direct contents of its own. Such packages can be split across
-multiple, separately-packaged distributions. Normally, you do not need to use
-the namespace package APIs directly; instead you should supply the
-``namespace_packages`` argument to ``setup()`` in your project's ``setup.py``.
-See the `setuptools documentation on namespace packages`_ for more information.
-
-However, if for some reason you need to manipulate namespace packages or
-directly alter ``sys.path`` at runtime, you may find these APIs useful:
+multiple, separately-packaged distributions. They are normally used to split
+up large packages produced by a single organization, such as in the ``zope``
+namespace package for Zope Corporation packages, and the ``peak`` namespace
+package for the Python Enterprise Application Kit.
+
+To create a namespace package, you list it in the ``namespace_packages``
+argument to ``setup()``, in your project's ``setup.py``. (See the `setuptools
+documentation on namespace packages`_ for more information on this.) Also,
+you must add a ``declare_namespace()`` call in the package's ``__init__.py``
+file(s):
``declare_namespace(name)``
Declare that the dotted package name `name` is a "namespace package" whose