WIP upgrade
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=59
This commit is contained in:
parent
33fa80968e
commit
129c5a5cb4
15
allow-numpy-1.24.patch
Normal file
15
allow-numpy-1.24.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
setup.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -23,7 +23,7 @@ min_python_version = "3.7"
|
||||||
|
max_python_version = "3.11" # exclusive
|
||||||
|
min_numpy_build_version = "1.11"
|
||||||
|
min_numpy_run_version = "1.18"
|
||||||
|
-max_numpy_run_version = "1.24"
|
||||||
|
+max_numpy_run_version = "1.25"
|
||||||
|
min_llvmlite_version = "0.39.0dev0"
|
||||||
|
max_llvmlite_version = "0.40"
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3492f0a5d09e257fc521f5377a6c6b907eec1920d14739f0b2458b9d29946a5a
|
|
||||||
size 2417234
|
|
3
numba-0.56.4.tar.gz
Normal file
3
numba-0.56.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:32d9fef412c81483d7efe0ceb6cf4d3310fde8b624a9cecca00f790573ac96ee
|
||||||
|
size 2418748
|
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 1 11:41:11 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.56.4:
|
||||||
|
- This is a bugfix release to fix a regression in the CUDA
|
||||||
|
target in relation to the .view() method on CUDA device
|
||||||
|
arrays that is present when using NumPy version 1.23.0 or
|
||||||
|
later.
|
||||||
|
- This is a bugfix release to remove the version restriction
|
||||||
|
applied to the setuptools package and to fix a bug in the
|
||||||
|
CUDA target in relation to copying zero length device arrays
|
||||||
|
to zero length host arrays.
|
||||||
|
- Add allow-numpy-1.24.patch to allow work with numpy 1.24
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 10 10:07:52 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
|
Mon Oct 10 10:07:52 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -21,7 +21,7 @@
|
|||||||
%define plainpython python
|
%define plainpython python
|
||||||
# upper bound is exclusive: min-numpy_ver <= numpy < max_numpy_ver
|
# upper bound is exclusive: min-numpy_ver <= numpy < max_numpy_ver
|
||||||
%define min_numpy_ver 1.18
|
%define min_numpy_ver 1.18
|
||||||
%define max_numpy_ver 1.24
|
%define max_numpy_ver 1.25
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
@ -31,7 +31,7 @@
|
|||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
Name: python-numba%{psuffix}
|
Name: python-numba%{psuffix}
|
||||||
Version: 0.56.2
|
Version: 0.56.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: NumPy-aware optimizing compiler for Python using LLVM
|
Summary: NumPy-aware optimizing compiler for Python using LLVM
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
@ -42,6 +42,9 @@ Patch2: fix-cli-test.patch
|
|||||||
Patch3: skip-failing-tests.patch
|
Patch3: skip-failing-tests.patch
|
||||||
# PATCH-FIX-OPENSUSE update-tbb-backend-calls-2021.6.patch, based on gh#numba/numba#7608
|
# PATCH-FIX-OPENSUSE update-tbb-backend-calls-2021.6.patch, based on gh#numba/numba#7608
|
||||||
Patch4: update-tbb-backend-calls-2021.6.patch
|
Patch4: update-tbb-backend-calls-2021.6.patch
|
||||||
|
# PATCH-FIX-UPSTREAM allow-numpy-1.24.patch bsc#[0-9]+ mcepl@suse.com
|
||||||
|
# Allow working with numpy 1.24 and higher
|
||||||
|
Patch5: allow-numpy-1.24.patch
|
||||||
BuildRequires: %{python_module devel >= 3.7}
|
BuildRequires: %{python_module devel >= 3.7}
|
||||||
BuildRequires: %{python_module numpy-devel >= %{min_numpy_ver} with %python-numpy-devel < %{max_numpy_ver}}
|
BuildRequires: %{python_module numpy-devel >= %{min_numpy_ver} with %python-numpy-devel < %{max_numpy_ver}}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
Index: numba-0.54.0/numba/tests/test_parfors.py
|
---
|
||||||
===================================================================
|
numba/tests/test_parfors.py | 5 +++--
|
||||||
--- numba-0.54.0.orig/numba/tests/test_parfors.py
|
numba/tests/test_parfors_passes.py | 1 +
|
||||||
+++ numba-0.54.0/numba/tests/test_parfors.py
|
2 files changed, 4 insertions(+), 2 deletions(-)
|
||||||
@@ -1146,6 +1146,7 @@ class TestParforNumPy(TestParforsBase):
|
|
||||||
|
--- a/numba/tests/test_parfors.py
|
||||||
|
+++ b/numba/tests/test_parfors.py
|
||||||
|
@@ -1174,6 +1174,7 @@ class TestParforNumPy(TestParforsBase):
|
||||||
self.check_variants(test_impl2, data_gen)
|
self.check_variants(test_impl2, data_gen)
|
||||||
self.count_parfors_variants(test_impl2, data_gen)
|
self.count_parfors_variants(test_impl2, data_gen)
|
||||||
|
|
||||||
@ -10,7 +13,7 @@ Index: numba-0.54.0/numba/tests/test_parfors.py
|
|||||||
def test_ndarray_fill(self):
|
def test_ndarray_fill(self):
|
||||||
def test_impl(x):
|
def test_impl(x):
|
||||||
x.fill(7.0)
|
x.fill(7.0)
|
||||||
@@ -3890,7 +3891,7 @@ class TestParforsVectorizer(TestPrangeBa
|
@@ -4396,7 +4397,7 @@ class TestParforsVectorizer(TestPrangeBa
|
||||||
# to check vsqrtpd operates on zmm
|
# to check vsqrtpd operates on zmm
|
||||||
match_vsqrtpd_on_zmm = re.compile('\n\s+vsqrtpd\s+.*zmm.*\n')
|
match_vsqrtpd_on_zmm = re.compile('\n\s+vsqrtpd\s+.*zmm.*\n')
|
||||||
|
|
||||||
@ -19,7 +22,7 @@ Index: numba-0.54.0/numba/tests/test_parfors.py
|
|||||||
def test_vectorizer_fastmath_asm(self):
|
def test_vectorizer_fastmath_asm(self):
|
||||||
""" This checks that if fastmath is set and the underlying hardware
|
""" This checks that if fastmath is set and the underlying hardware
|
||||||
is suitable, and the function supplied is amenable to fastmath based
|
is suitable, and the function supplied is amenable to fastmath based
|
||||||
@@ -3933,7 +3934,7 @@ class TestParforsVectorizer(TestPrangeBa
|
@@ -4439,7 +4440,7 @@ class TestParforsVectorizer(TestPrangeBa
|
||||||
# check no zmm addressing is present
|
# check no zmm addressing is present
|
||||||
self.assertTrue('zmm' not in v)
|
self.assertTrue('zmm' not in v)
|
||||||
|
|
||||||
@ -28,10 +31,8 @@ Index: numba-0.54.0/numba/tests/test_parfors.py
|
|||||||
def test_unsigned_refusal_to_vectorize(self):
|
def test_unsigned_refusal_to_vectorize(self):
|
||||||
""" This checks that if fastmath is set and the underlying hardware
|
""" This checks that if fastmath is set and the underlying hardware
|
||||||
is suitable, and the function supplied is amenable to fastmath based
|
is suitable, and the function supplied is amenable to fastmath based
|
||||||
Index: numba-0.54.0/numba/tests/test_parfors_passes.py
|
--- a/numba/tests/test_parfors_passes.py
|
||||||
===================================================================
|
+++ b/numba/tests/test_parfors_passes.py
|
||||||
--- numba-0.54.0.orig/numba/tests/test_parfors_passes.py
|
|
||||||
+++ numba-0.54.0/numba/tests/test_parfors_passes.py
|
|
||||||
@@ -516,6 +516,7 @@ class TestConvertLoopPass(BaseTest):
|
@@ -516,6 +516,7 @@ class TestConvertLoopPass(BaseTest):
|
||||||
str(raises.exception),
|
str(raises.exception),
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
Index: numba-0.56.2/numba/np/ufunc/tbbpool.cpp
|
---
|
||||||
===================================================================
|
numba/np/ufunc/tbbpool.cpp | 29 ++++++++++++++++++++++++-----
|
||||||
--- numba-0.56.2.orig/numba/np/ufunc/tbbpool.cpp
|
1 file changed, 24 insertions(+), 5 deletions(-)
|
||||||
+++ numba-0.56.2/numba/np/ufunc/tbbpool.cpp
|
|
||||||
|
--- a/numba/np/ufunc/tbbpool.cpp
|
||||||
|
+++ b/numba/np/ufunc/tbbpool.cpp
|
||||||
@@ -12,6 +12,7 @@ Implement parallel vectorize workqueue o
|
@@ -12,6 +12,7 @@ Implement parallel vectorize workqueue o
|
||||||
#undef _XOPEN_SOURCE
|
#undef _XOPEN_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user