Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

Commit

Permalink
guides/packaging-namespace-packages.rst: mention setuptools.find_name…
Browse files Browse the repository at this point in the history
…space_packages() to help packaging PEP 420 packages

fixes pypa#580
  • Loading branch information
plemelin committed Jul 5, 2019
1 parent 91feaa6 commit ea9bb04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/guides/packaging-namespace-packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ package omits the :file:`__init__.py` or uses a pkgutil-style
logic to fail and the other sub-packages will not be importable.

Because ``mynamespace`` doesn't contain an :file:`__init__.py`,
:func:`setuptools.find_packages` won't find the sub-package. You must
:func:`setuptools.find_packages` won't find the sub-package. To get the
sub-packages, you must either use :func:`setuptools.find_namespace_packages` or
explicitly list all packages in your :file:`setup.py`. For example:

.. code-block:: python
Expand Down

0 comments on commit ea9bb04

Please sign in to comment.