From 9289882dcd71a1f82bd7d075ddd904c39cf3b5c1cc2baea19b5f45cec6989cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 28 May 2024 12:41:40 +0000 Subject: [PATCH] Accepting request 1177183 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * Support numpy.vectorize, numpy.argsort's kind keyword, real/imag on numpy_iexpr * Add missing omp.set_num_thread descriptor * Provide --trace-allocations switch * Support empty PYTHRANRC for reproducible builds * Improve compilation time * Support ufunc creation through #pythran export ufunc func_name(arg_types...) * Fix memory leak when returing numpy_gexpr to Python * Numpy 2.x support * Upgrade xsimd to 13.0.0 * Improve detection of non-overlapping memory area during gexpr assignment * Improve python 3.12 support (distutils removal) * Support imatmul * Only link blas when needed - Refactor the multibuild test flavor logic - Accomodate some 15.x intricacies for the failing tests: * use netlib lapack/blas instead of openblas OBS-URL: https://build.opensuse.org/request/show/1177183 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pythran?expand=0&rev=42 --- python-pythran.changes | 28 +++++++++++++++++++++++ python-pythran.spec | 49 +++++++++++++++++++++------------------- pythran-0.15.0-gh.tar.gz | 3 --- pythran-0.16.0-gh.tar.gz | 3 +++ 4 files changed, 57 insertions(+), 26 deletions(-) delete mode 100644 pythran-0.15.0-gh.tar.gz create mode 100644 pythran-0.16.0-gh.tar.gz diff --git a/python-pythran.changes b/python-pythran.changes index 0b8e946..d60d479 100644 --- a/python-pythran.changes +++ b/python-pythran.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Sat May 25 10:35:26 UTC 2024 - Ben Greiner + +- Update to 0.16.0 + * Support numpy.vectorize, numpy.argsort's kind keyword, + real/imag on numpy_iexpr + * Add missing omp.set_num_thread descriptor + * Provide --trace-allocations switch + * Support empty PYTHRANRC for reproducible builds + * Improve compilation time + * Support ufunc creation through #pythran export ufunc + func_name(arg_types...) + * Fix memory leak when returing numpy_gexpr to Python + * Numpy 2.x support + * Upgrade xsimd to 13.0.0 + * Improve detection of non-overlapping memory area during gexpr + assignment + * Improve python 3.12 support (distutils removal) + * Support imatmul + * Only link blas when needed + +------------------------------------------------------------------- +Thu Apr 25 09:21:21 UTC 2024 - Ben Greiner + +- Refactor the multibuild test flavor logic +- Accomodate some 15.x intricacies for the failing tests: + * use netlib lapack/blas instead of openblas + ------------------------------------------------------------------- Fri Feb 23 12:24:06 UTC 2024 - Dominique Leuenberger diff --git a/python-pythran.spec b/python-pythran.spec index f118f37..bfc0919 100644 --- a/python-pythran.spec +++ b/python-pythran.spec @@ -17,39 +17,34 @@ %global flavor @BUILD_FLAVOR@%{nil} -%if "%{flavor}" == "test-py310" -%define psuffix -test-py310 -%define skip_python311 1 -%define skip_python312 1 -%endif -%if "%{flavor}" == "test-py311" -%define psuffix -test-py311 -%define skip_python310 1 -%define skip_python312 1 -%endif -%if "%{flavor}" == "test-py312" -%define psuffix -test-py312 -%define skip_python310 1 -%define skip_python311 1 -%endif +%{?sle15_python_module_pythons} + %if "%{flavor}" == "" %define psuffix %{nil} %bcond_with test %else +%define psuffix -%{flavor} %bcond_without test -# global stop testing even when it is still in buildset (otherwise every test flavor would also test this one) -%define skip_python39 1 -# do nothing in a test flavor that is still around but has nothing in buildset anymore -%if "%{shrink:%{pythons}}" == "" +%if "%{flavor}" != "test-py310" +%define skip_python310 1 +%endif +%if "%{flavor}" != "test-py311" +%define skip_python311 1 +%endif +%if "%{flavor}" != "test-py312" +%define skip_python312 1 +%endif +# Skip empty buildsets, last one is for sle15_python_module_pythons +%if "%{shrink:%{pythons}}" == "" || ("%pythons" == "python311" && 0%{?skip_python311}) ExclusiveArch: donotbuild -%define python_module() %flavor-not-enabled-in-buildset +%define python_module() %flavor-not-enabled-in-buildset-for-suse-%{?suse_version} %else ExclusiveArch: x86_64 %endif %endif -%{?sle15_python_module_pythons} + Name: python-pythran%{psuffix} -Version: 0.15.0 +Version: 0.16.0 Release: 0 Summary: Ahead of Time compiler for numeric kernels License: BSD-3-Clause @@ -74,16 +69,22 @@ Requires: boost-devel Requires: gcc-c++ Requires: python-devel Requires: python-numpy-devel -Requires: xsimd-devel +Requires: xsimd-devel >= 13.0.0 # /SECTION %if %{with test} BuildRequires: %{python_module ipython} +BuildRequires: %{python_module packaging} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pythran = %{version}} BuildRequires: %{python_module wheel} +%if 0%{?suse_version} > 1500 BuildRequires: openblas-devel +%else +BuildRequires: cblas-devel +BuildRequires: lapack-devel +%endif BuildRequires: unzip %endif BuildArch: noarch @@ -120,6 +121,7 @@ rm -r pythran/boost pythran/xsimd %if %{with test} %check export CFLAGS="%{optflags}" +%if 0%{?suse_version} > 1500 # Force to link against openblas during tests because the update-alternatives setup # for lapack/cblas/openblas might be inconsistent inside obs builds cat > config.pythranrc <