Skip to content

Commit

Permalink
Add information on why namespace_packages are deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Feb 13, 2023
1 parent 7066963 commit 81e1137
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/references/keywords.rst
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,10 @@ extensions).

``namespace_packages``
.. warning::
``namespace_packages`` is deprecated in favor of native/implicit
The ``namespace_packages`` implementation relies on ``pkg_resources``.
However, ``pkg_resources`` has some undesirable behaviours, and
Setuptools intends to obviate its usage in the future. Therefore,
``namespace_packages`` was deprecated in favor of native/implicit
namespaces (:pep:`420`). Check :doc:`the Python Packaging User Guide
<PyPUG:guides/packaging-namespace-packages>` for more information.

Expand Down

0 comments on commit 81e1137

Please sign in to comment.