Original report by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco).
Per the documentation for backports, the backports modules should be using the pkgutil technique for declaring namespaces.
Although it doesn't say it explicitly in the guidance, the only place where namespace_packages= is mentioned is in the guidance for pkg_resources namespaces. And if you look at the examples or other backports projects, you see they do not define a non-degenerate namespace_packages.
By declaring the namespace_packages, you signal setuptools to declare that namespace and to generate the nspkg.pth file that leads to backports being imported at startup. It is the root cause of pytest-4014 and is likely implicated in #20, #19, and #17.
I believe you can remove that declaration without any adverse effects.
Original report by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco).
Per the documentation for backports, the backports modules should be using the pkgutil technique for declaring namespaces.
Although it doesn't say it explicitly in the guidance, the only place where
namespace_packages=is mentioned is in the guidance for pkg_resources namespaces. And if you look at the examples or other backports projects, you see they do not define a non-degeneratenamespace_packages.By declaring the namespace_packages, you signal setuptools to declare that namespace and to generate the nspkg.pth file that leads to
backportsbeing imported at startup. It is the root cause of pytest-4014 and is likely implicated in #20, #19, and #17.I believe you can remove that declaration without any adverse effects.