diff --git a/allow-numpy21.patch b/allow-numpy21.patch new file mode 100644 index 0000000..82bfd78 --- /dev/null +++ b/allow-numpy21.patch @@ -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) + diff --git a/python-numba.changes b/python-numba.changes index 285e3a1..67fd9e5 100644 --- a/python-numba.changes +++ b/python-numba.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Mon Sep 23 11:08:52 UTC 2024 - Dirk Müller -- allow numpy 2.1 +- add allow-numpy21.patch to allow numpy 2.1 ------------------------------------------------------------------- Mon Jul 1 05:10:03 UTC 2024 - Steve Kowalik diff --git a/python-numba.spec b/python-numba.spec index 5d1793d..90ad63e 100644 --- a/python-numba.spec +++ b/python-numba.spec @@ -54,7 +54,7 @@ ExcludeArch: s390x ppc64 %ix86 %arm %endif %endif -Name: python-numba%{?psuffix} +Name: python-numba Version: 0.60.0 Release: 0 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 # PATCH-FIX-OPENSUSE skip tests failing due to OBS specifics Patch3: skip-failing-tests.patch +Patch4: allow-numpy21.patch BuildRequires: %{python_module devel >= 3.9} BuildRequires: %{python_module numpy-devel >= %{min_numpy_ver} with %python-numpy-devel < %{max_numpy_ver}} BuildRequires: %{python_module pip}