python-numba/allow-numpy21.patch

15 lines
507 B
Diff

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)