Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions peps/pep-0420.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ setuptools provides a similar function named
import pkg_resources
pkg_resources.declare_namespace(__name__)

NOTE: ``pkg_resources`` was removed from ``setuptools`` v82.0.0 [2]_.

In the portion's ``__init__.py``, no assignment to ``__path__`` is
necessary, as ``declare_namespace`` modifies the package ``__path__``
through ``sys.modules``. As a special feature, ``declare_namespace``
Expand Down Expand Up @@ -616,6 +618,9 @@ References

.. [1] PEP 420 branch (http://hg.python.org/features/pep-420)

.. [2] Refrence of removin ``pkg_resources`` from ``setuptools`` v82.0.0
(https://setuptools.pypa.io/en/stable/history.html#v82-0-0)

.. [3] PyCon 2012 Namespace Package discussion outcome
(https://mail.python.org/pipermail/import-sig/2012-March/000421.html)

Expand Down
Loading