Init a new branch to update to meson v1.11#27
Draft
seiko2plus wants to merge 25 commits into
Draft
Conversation
This module aims to provide a more dynamic way to control common features between compilers that would generally require special headers, arguments, or compile-time test cases, quite ideal to manage CPU features and solve compatibility issues.
and brings X86 CPU features
- Removes CPU features implmentation and move them NumPy meson scripts
- Removes attr 'header', since it can be handeled within
a configuration file
- re-implment method test, make it more simple
- Implment method `multi_targets`
Handels multi_targets via meson script was pretty anoyning
from python make it much simpler
- Improve multi_targets() method:
* rename multi_target() to multi_targets() use plural to indicates handling more than one CPU target
* Split the function into multiple smaller functions for better organization.
* Modify the function to return a single library array instead of a list of libraries.
* Avoid returning the result of testing the enabled features to keep it
* simple.
* Enhance debugging capabilities by printing the test results of enabled targets.
* Avoid returns static_lib instead wraps it with another object
to reduce the number of final generated objects also
to sort the all objects based on lowest interest
* validate the sort of dispatch features
- fix mypy
- init the module doc
- allow disables the cache
- fix method `features.new` name during trigger arguments errors
- generate config files inside the builddir instead
- add test cases
- cache tests within coredata
- fix duplicate baseline build
- refactor module name from `feature` to `features`
- fix python typying
- Attributes without match were never actually added to the list - Only the last conflict actually had an effect, earlier results were discarded
a379a6f to
4b7735b
Compare
…dependencies Also a bit of refactoring and improvements to OpenBLAS and MKL logic to reduce the amount of unnecessary checks.
The two things fixed here: - `xcrun` isn't available on very old versions (MacPorts still supports 10.5/10.6) - Version comparison is done correctly now with `mesonlib.version_compare` See numpy/numpy#25406 for the bug report.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Likely during the merge to v1.9.2 (#24), an incomplete or diverged rebase broke the
mesonsub-project functionality (see CI errors within numpy/numpy#29699). Therefore, I created a new clean branchmain-numpymeson-1.11formesonv1.11, also I made a few changes to make the module feature compatible with the latest versions ofmeson; see the original PR mesonbuild#11307.back-ported
importlib.resourcesfunctions on Python >=3.13 #4