Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: add a 'tests' install tag to the numpy._core._simd extension module #26968

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

rgommers
Copy link
Member

This avoids installing _simd.so when the 'tests' install tag is omitted in order to strip the whole test suite.
This is a significant saving in binary size especially on x86-64 (see gh-25737, about 10% of the installed size).

Tested on macOS arm64 too, there _simd.so is 363 kb for a release build, or ~12% of the size of the main extension module (_multiarray_umath.so).

… module

This avoids installing `_simd.so` when the 'tests' install tag is omitted
in order to strip the whole test suite.
This is a significant saving in binary size especially on x86-64 (see
issue 25737, about 10% of the installed size).

Tested on macOS arm64 too, there `_simd.so` is 363 kb for a release build,
or ~12% of the size of the main extension module (`_multiarray_umath.so`).
@rgommers rgommers added this to the 2.1.0 release milestone Jul 17, 2024
@mattip mattip merged commit f858539 into numpy:main Jul 17, 2024
68 of 69 checks passed
@mattip
Copy link
Member

mattip commented Jul 17, 2024

Thanks @rgommers

@rgommers rgommers deleted the _simd-install-tag branch July 17, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants