Accepting request 1177345 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/1177345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pythran?expand=0&rev=16
This commit is contained in:
Ana Guerrero 2024-05-29 17:35:23 +00:00 committed by Git OBS Bridge
commit 7b9a150396
4 changed files with 57 additions and 26 deletions

View File

@ -1,3 +1,31 @@
-------------------------------------------------------------------
Sat May 25 10:35:26 UTC 2024 - Ben Greiner <code@bnavigator.de>
- 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 <code@bnavigator.de>
- 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 <dimstar@opensuse.org> Fri Feb 23 12:24:06 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -17,39 +17,34 @@
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test-py310" %{?sle15_python_module_pythons}
%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
%if "%{flavor}" == "" %if "%{flavor}" == ""
%define psuffix %{nil} %define psuffix %{nil}
%bcond_with test %bcond_with test
%else %else
%define psuffix -%{flavor}
%bcond_without test %bcond_without test
# global stop testing even when it is still in buildset (otherwise every test flavor would also test this one) %if "%{flavor}" != "test-py310"
%define skip_python39 1 %define skip_python310 1
# do nothing in a test flavor that is still around but has nothing in buildset anymore %endif
%if "%{shrink:%{pythons}}" == "" %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 ExclusiveArch: donotbuild
%define python_module() %flavor-not-enabled-in-buildset %define python_module() %flavor-not-enabled-in-buildset-for-suse-%{?suse_version}
%else %else
ExclusiveArch: x86_64 ExclusiveArch: x86_64
%endif %endif
%endif %endif
%{?sle15_python_module_pythons}
Name: python-pythran%{psuffix} Name: python-pythran%{psuffix}
Version: 0.15.0 Version: 0.16.0
Release: 0 Release: 0
Summary: Ahead of Time compiler for numeric kernels Summary: Ahead of Time compiler for numeric kernels
License: BSD-3-Clause License: BSD-3-Clause
@ -74,16 +69,22 @@ Requires: boost-devel
Requires: gcc-c++ Requires: gcc-c++
Requires: python-devel Requires: python-devel
Requires: python-numpy-devel Requires: python-numpy-devel
Requires: xsimd-devel Requires: xsimd-devel >= 13.0.0
# /SECTION # /SECTION
%if %{with test} %if %{with test}
BuildRequires: %{python_module ipython} BuildRequires: %{python_module ipython}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pythran = %{version}} BuildRequires: %{python_module pythran = %{version}}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
%if 0%{?suse_version} > 1500
BuildRequires: openblas-devel BuildRequires: openblas-devel
%else
BuildRequires: cblas-devel
BuildRequires: lapack-devel
%endif
BuildRequires: unzip BuildRequires: unzip
%endif %endif
BuildArch: noarch BuildArch: noarch
@ -120,6 +121,7 @@ rm -r pythran/boost pythran/xsimd
%if %{with test} %if %{with test}
%check %check
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
%if 0%{?suse_version} > 1500
# Force to link against openblas during tests because the update-alternatives setup # Force to link against openblas during tests because the update-alternatives setup
# for lapack/cblas/openblas might be inconsistent inside obs builds # for lapack/cblas/openblas might be inconsistent inside obs builds
cat > config.pythranrc <<EOF cat > config.pythranrc <<EOF
@ -128,6 +130,7 @@ blas=openblas
libs=openblas libs=openblas
EOF EOF
export PYTHRANRC=$PWD/config.pythranrc export PYTHRANRC=$PWD/config.pythranrc
%endif
# pytest_extra_args is for debug builds with local defines on command line # pytest_extra_args is for debug builds with local defines on command line
%pytest %{?jobs:-n %jobs} %{?pytest_extra_args} %pytest %{?jobs:-n %jobs} %{?pytest_extra_args}
%endif %endif

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:082b80649a014e75dbdcde2220be47f5446d649362cc8cf9b14f611117a01550
size 3676474

3
pythran-0.16.0-gh.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56c42c745c4f253fb5053b3706345c6e111288f2f2df75e9dc265fff24e230de
size 3680823