Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867799 - dev-lang/python: USE="-test" still installs 3500 files in test/
Summary: dev-lang/python: USE="-test" still installs 3500 files in test/
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-01 06:28 UTC by m1027
Modified: 2022-09-03 15:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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