Skip to content

Commit b0ea6aa

Browse files
authored
Merge pull request #1307 from IntelPython/update/min_required_numba_is_0.58
Make numba 0.58 the minimum supported version
2 parents 04f06e6 + da1db14 commit b0ea6aa

File tree

5 files changed

+6
-185
lines changed

5 files changed

+6
-185
lines changed

conda-recipe/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ requirements:
2828
- scikit-build >=0.15*
2929
- ninja # [not win]
3030
- cmake >=3.26*
31-
- numba >=0.57*
31+
- numba >=0.58*
3232
- dpctl >=0.14*
3333
- dpnp >=0.11*
3434
- dpcpp-llvm-spirv
3535
- wheel
3636
run:
3737
- {{ pin_compatible('dpcpp-cpp-rt', min_pin='x.x', max_pin='x') }}
3838
- python
39-
- numba >=0.57*
39+
- numba >=0.58*
4040
- dpctl >=0.14*
4141
- dpcpp-llvm-spirv
4242
- dpnp >=0.11*

numba_dpex/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,14 @@ def parse_sem_version(version_string: str) -> Tuple[int, int, int]:
6767

6868

6969
numba_sem_version = parse_sem_version(numba_version)
70-
if numba_sem_version < (0, 57, 0) or numba_sem_version >= (0, 59, 0):
70+
if numba_sem_version < (0, 58, 0) or numba_sem_version >= (0, 59, 0):
7171
logging.warning(
72-
"numba_dpex needs at least numba 0.57.0 but no more than 0.59.0, using "
72+
"numba_dpex needs at least numba 0.58.0 but no more than 0.59.0, using "
7373
f"numba={numba_version} may cause unexpected behavior"
7474
)
7575

7676
# Monkey patches
7777
patch_is_ufunc.patch()
78-
if numba_sem_version < (0, 58, 0):
79-
from .numba_patches import patch_mk_alloc
80-
81-
patch_mk_alloc.patch()
8278
patch_arrayexpr_tree_to_ir.patch()
8379

8480
dpctl_sem_version = parse_sem_version(dpctl.__version__)

numba_dpex/numba_patches/patch_mk_alloc.py

Lines changed: 0 additions & 175 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ requires = [
5757
"scikit-build>=0.13",
5858
"cmake>=3.18",
5959
"ninja",
60-
"numba>=0.57",
60+
"numba>=0.58",
6161
"versioneer-518"
6262
]
6363
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def to_cmake_format(version: str):
8080
platforms=["Linux", "Windows"],
8181
author="Intel Corporation",
8282
url="https://github.com/IntelPython/numba-dpex",
83-
install_requires=["numba >={0:s}".format("0.57"), "dpctl", "packaging"],
83+
install_requires=["numba >={0:s}".format("0.58"), "dpctl", "packaging"],
8484
packages=find_packages("."),
8585
include_package_data=True,
8686
zip_safe=False,

0 commit comments

Comments
 (0)