On Thu, Feb 1, 2024 at 4:38 PM Eli Schwartz <eschwart...@gmail.com> wrote: > > On 2/1/24 4:03 PM, Michał Górny wrote: > > I suppose you are referring to dev-lang/python here. Unfortunately, > > removing tests from it is a non-trivial problem. As I've mentioned to > > you before, there are packages that actually import modules form the > > test directory. > > > > Remember that Gentoo has a policy of following upstream, and this policy > > is specifically targeted towards developers who expect Gentoo to > > be a good baseline environment for developing packages. By explicitly > > diverging from upstream default install by default, we are effectively > > creating an incompatible Python environment and requiring users to go > > through extra steps to restore upstream compatibility. > > > The "following upstream" argument is extremely weak. > > eschwartz ~/git/cpython $ ./configure --help| grep test > --disable-test-modules don't build nor install test modules > > > Clearly, upstream is giving you loud and clear permission to refrain > from installing this. They even have a split in their Makefile variables: > - LIBSUBDIRS: things that are always installed > - TESTSUBDIRS: test files that you can disable
Ah, that's a relatively new configure option added in Python 3.10. It didn't exist back in 2015 when I was looking into this. https://docs.python.org/3/whatsnew/3.10.html#build-changes Thanks for pointing it out.