mise icon indicating copy to clipboard operation
mise copied to clipboard

Python: exclude tests folder by default (or config)

Open eugenesvk opened this issue 2 years ago • 3 comments

Half of Python's installation size of rtx install [email protected] is a mostly useless tests folder lib/python3.12/test Is it possible to exlude that folder from installation via some kind of config https://github.com/python/cpython/issues/71827 (or maybe just autodelete it post-install if that previous one not posible)

eugenesvk avatar Jul 15 '23 07:07 eugenesvk

I believe you should be able to do this today with the following:

CONFIGURE_OPTS=--disable-test-modules rtx install

jdx avatar Jul 18 '23 22:07 jdx

Oh, I see, thank you! What do you think of adding that as the default in rtx to make it more efficient without user effort (more waste should require more effort)?

eugenesvk avatar Jul 19 '23 04:07 eugenesvk

I don't like the idea of modifying python-build's defaults.

jdx avatar Jul 19 '23 14:07 jdx

new precompiled pythons won't have this directory

jdx avatar Jan 07 '24 09:01 jdx