Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 867799

Summary: dev-lang/python: USE="-test" still installs 3500 files in test/
Product: Gentoo Linux Reporter: m1027 <m1027>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED WONTFIX    
Severity: normal CC: mattst88, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description m1027 2022-09-01 06:28:51 UTC
Hi python experts,

With python3.10 and USE=-test I still get the test/ dir installed with these numbers:

$ find /usr/lib/python3.10/test/ | wc -l
3503
$ du -sh /usr/lib/python3.10/test
69M     /usr/lib/python3.10/test

Especially on small systems, e.g. on sd-cards, but also for repeated backups this is quite something.

I wonder if installing python without test (USE=-test) could avoid installing the test files.

Thanks.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-09-01 16:58:50 UTC
That's your standard Python install.  Some packages actually use (as in, import) these test files (usually for their own test suites but not always).
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-01 17:10:16 UTC
You can do INSTALL_MASK="/usr/lib/python3.??/test" or similar in /etc/portage/make.conf.
Comment 3 m1027 2022-09-03 15:40:01 UTC
(In reply to Sam James from comment #2)
> You can do INSTALL_MASK="/usr/lib/python3.??/test" or similar in
> /etc/portage/make.conf.

I wasn't aware of that at all. It didn't work with the ?? wildcards here but without it worked.

I'll see whether python & friends will continue to work normally.

Thanks a lot