Title: Add split install targets to install tests separately from lib
Type: enhancement Stage:
Components: Build Versions: Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eschwartz, vstinner
Priority: normal Keywords:

Created on 2021-02-21 04:49 by eschwartz, last changed 2021-02-21 11:09 by vstinner.

Messages (2)
msg387438 - (view) Author: Eli Schwartz (eschwartz) Date: 2021-02-21 04:49

Carrying on from the addition of --disable-test-modules, I would find it convenient to be able to still provide the tests, but install them separately. The end result would be two distro packages, one slim package that does not include the test modules by default, and one package that adds in the test modules for people that need it.

This is currently possible via running the install step twice and some hacky shell globbing to delete unneeded files from each install.

Some sort of libinstall/testinstall target split target would be less hacky, and not require checking if the list of test modules is up to date. So I'd consider it nice to have. :)
msg387453 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-02-21 11:09
Do you want to work on a PR to implement this idea?
Date User Action Args
2021-02-21 11:09:23vstinnersetnosy: + vstinner
messages: + msg387453
2021-02-21 04:49:05eschwartzcreate