- add allow-numpy21.patch to allow numpy 2.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=91
This commit is contained in:
parent
435365a363
commit
9218c9dbd3
14
allow-numpy21.patch
Normal file
14
allow-numpy21.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
see https://github.com/numba/numba/issues/9708
|
||||||
|
--- numba-0.60.0/numba/__init__.py
|
||||||
|
+++ numba-0.60.0/numba/__init__.py
|
||||||
|
@@ -39,8 +39,8 @@
|
||||||
|
f"{numpy_version[0]}.{numpy_version[1]}.")
|
||||||
|
raise ImportError(msg)
|
||||||
|
|
||||||
|
- if numpy_version > (2, 0):
|
||||||
|
- msg = (f"Numba needs NumPy 2.0 or less. Got NumPy "
|
||||||
|
+ if numpy_version > (2, 1):
|
||||||
|
+ msg = (f"Numba needs NumPy 2.1 or less. Got NumPy "
|
||||||
|
f"{numpy_version[0]}.{numpy_version[1]}.")
|
||||||
|
raise ImportError(msg)
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 23 11:08:52 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Mon Sep 23 11:08:52 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
- allow numpy 2.1
|
- add allow-numpy21.patch to allow numpy 2.1
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 1 05:10:03 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
Mon Jul 1 05:10:03 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
@ -54,7 +54,7 @@ ExcludeArch: s390x ppc64 %ix86 %arm
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: python-numba%{?psuffix}
|
Name: python-numba
|
||||||
Version: 0.60.0
|
Version: 0.60.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: NumPy-aware optimizing compiler for Python using LLVM
|
Summary: NumPy-aware optimizing compiler for Python using LLVM
|
||||||
@ -64,6 +64,7 @@ URL: https://numba.pydata.org/
|
|||||||
Source: https://files.pythonhosted.org/packages/source/n/numba/numba-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/n/numba/numba-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE skip tests failing due to OBS specifics
|
# PATCH-FIX-OPENSUSE skip tests failing due to OBS specifics
|
||||||
Patch3: skip-failing-tests.patch
|
Patch3: skip-failing-tests.patch
|
||||||
|
Patch4: allow-numpy21.patch
|
||||||
BuildRequires: %{python_module devel >= 3.9}
|
BuildRequires: %{python_module devel >= 3.9}
|
||||||
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 pip}
|
BuildRequires: %{python_module pip}
|
||||||
|
Loading…
Reference in New Issue
Block a user