distutils-r1.eclass: Warn if *-nspkg.pth files are installed
authorMichał Górny <mgorny@gentoo.org>
Fri, 5 May 2017 21:08:37 +0000 (23:08 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 16 May 2017 17:11:29 +0000 (19:11 +0200)
commit457c73f83753c32d8955137603133abe03fc3533
tree3a7c40a0991e38cf15f657f2a8c9e1cb8afba5a4
parentf7a6a18eaf91ef20a841417e1c7eddfb569810c2
distutils-r1.eclass: Warn if *-nspkg.pth files are installed

Add a check for *-nspkg.pth files indicating implicit setuptools
namespace hack. While they kept namespaces somewhat working without
requiring explicit support in ebuilds, they were unreliable. They
frequently required additional hacks (distutils_install_for_testing) to
get the tests working, and they have proven even more broken for Python
3.5+.

For this reason, those files were deprecated in favor of proper,
explicit namespace support. If they are found to exist, the developer
should ensure to remove them to avoid issues.
eclass/distutils-r1.eclass