You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because mynamespace doesn’t contain an init.py, setuptools.find_packages() won’t find the sub-package. You must explicitly list all packages in your setup.py. For example:
I think it would be nice if it was updated to something like this:
Because mynamespace doesn’t contain an init.py, setuptools.find_packages() won’t find the sub-package. To get the sub-packages, you must either use setuptools.find_namespace_packages() or explicitly list all sub-packages in your setup.py. For example:
The text was updated successfully, but these errors were encountered:
@theacodes
I stumble upon this issue. After reading pypa/setuptools#97 I could not find any reference to find_namespace_packages other than the code itself. Hopefully the text suits the needs
I was struggling with a namespace packge for a long time until I found out about
setuptools.find_namespace_packages()
in a github issue.I think it would be nice if
find_namespace_packages()
was mentioned in this guide:https://packaging.python.org/guides/packaging-namespace-packages/#packaging-namespace-packages
There is this section already:
I think it would be nice if it was updated to something like this:
The text was updated successfully, but these errors were encountered: