663f010f08
- Enable openblas for python-numpy:gnu-hpc on s390x - Add patch fix-meson-multiple-python-versions.patch: * Ensure meson executes sys.executable when testing Cython. - Update to 1.26.4 * NumPy 1.26.4 is a maintenance release that fixes bugs and regressions discovered after the 1.26.3 release. The Python versions supported by this release are 3.9-3.12. This is the last planned release in the 1.26.x series. * BUG: Restore missing asstr import * MAINT: prepare 1.26.x for further development * BUG: numpy.array_api: fix linalg.cholesky upper decomp... * MAINT, BLD: Fix unused inline functions warnings on clang * TST: Fix test_numeric on riscv64 * MAINT: add newaxis to __all__ in numpy.array_api * BUG: Use large file fallocate on 32 bit linux platforms * TST: Fix test_warning_calls on Python 3.12 * TST: Bump pytz to 2023.3.post1 * BUG: Fix AVX512 build flags on Intel Classic Compiler * BLD: fix potential issue with escape sequences in __config__.py * BLD: unvendor meson-python on 1.26.x and upgrade to meson-python... * MAINT: Include header defining backtrace * BUG: Fix np.quantile([Fraction(2,1)], 0.5) (#24711) - Release 1.26.3 ## Compatibility * f2py will no longer accept ambiguous -m and .pyf CLI OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy1?expand=0&rev=1
47 lines
2.2 KiB
Diff
47 lines
2.2 KiB
Diff
From 79e7c3c3262374de778145946b612135fb7cd581 Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fvogt@suse.de>
|
|
Date: Thu, 28 Mar 2024 13:15:54 +0100
|
|
Subject: [PATCH] feature module: Fix handling of multiple conflicts per
|
|
attribute
|
|
|
|
- Attributes without match were never actually added to the list
|
|
- Only the last conflict actually had an effect, earlier results were
|
|
discarded
|
|
---
|
|
vendored-meson/meson/mesonbuild/modules/features/module.py | 7 ++-----
|
|
1 file changed, 2 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/vendored-meson/meson/mesonbuild/modules/features/module.py b/vendored-meson/meson/mesonbuild/modules/features/module.py
|
|
index 0be6af06c..a6f357b3f 100644
|
|
--- a/vendored-meson/meson/mesonbuild/modules/features/module.py
|
|
+++ b/vendored-meson/meson/mesonbuild/modules/features/module.py
|
|
@@ -371,15 +371,12 @@ class Module(NewExtensionModule):
|
|
values: List[ConflictAttr] = getattr(fet, attr)
|
|
accumulate_values = test_result[attr] # type: ignore
|
|
for conflict in values:
|
|
- if not conflict.match:
|
|
- accumulate_values.append(conflict.val)
|
|
- continue
|
|
conflict_vals: List[str] = []
|
|
# select the acc items based on the match
|
|
new_acc: List[str] = []
|
|
for acc in accumulate_values:
|
|
# not affected by the match so we keep it
|
|
- if not conflict.match.match(acc):
|
|
+ if not (conflict.match and conflict.match.match(acc)):
|
|
new_acc.append(acc)
|
|
continue
|
|
# no filter so we totaly escape it
|
|
@@ -396,7 +393,7 @@ class Module(NewExtensionModule):
|
|
continue
|
|
conflict_vals.append(conflict.mjoin.join(filter_val))
|
|
new_acc.append(conflict.val + conflict.mjoin.join(conflict_vals))
|
|
- test_result[attr] = new_acc # type: ignore
|
|
+ accumulate_values = test_result[attr] = new_acc # type: ignore
|
|
|
|
test_args = compiler.has_multi_arguments
|
|
args = test_result['args']
|
|
--
|
|
2.44.0
|
|
|