Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin llvmlite and NumPy on release branch. #8205

Merged
merged 3 commits into from Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGE_LOG
Expand Up @@ -270,6 +270,7 @@ Pull-Requests:
* PR `#8197 <https://github.com/numba/numba/pull/8197>`_: Fix `isinstance` warning check test. (`stuartarchibald <https://github.com/stuartarchibald>`_)
* PR `#8203 <https://github.com/numba/numba/pull/8203>`_: pin llvmlite 0.39 for public CI builds (`esc <https://github.com/esc>`_)
* PR `#8192 <https://github.com/numba/numba/pull/8192>`_: Update CHANGE_LOG for 0.56.0 (`stuartarchibald <https://github.com/stuartarchibald>`_ `esc <https://github.com/esc>`_ `Siu Kwan Lam <https://github.com/sklam>`_)
* PR `#8205 <https://github.com/numba/numba/pull/8205>`_: Pin llvmlite and NumPy on release branch.(`esc <https://github.com/esc>`_ `Siu Kwan Lam <https://github.com/sklam>`_)

Authors:

Expand Down
6 changes: 3 additions & 3 deletions buildscripts/condarecipe.local/meta.yaml
Expand Up @@ -35,7 +35,7 @@ requirements:
- setuptools
- importlib_metadata # [py<39]
# On channel https://anaconda.org/numba/
- llvmlite >=0.39.0dev0,<0.39
- llvmlite 0.39.*
# TBB devel version is to match TBB libs.
# 2020.3 is the last version with the "old" ABI
# NOTE: 2021.1..2021.5 are API compatible for Numba's purposes.
Expand All @@ -45,11 +45,11 @@ requirements:
run:
- python >=3.7
# NumPy 1.22.0, 1.22.1, 1.22.2 are all broken for ufuncs, see #7756
- numpy >=1.18, !=1.22.0, !=1.22.1, !=1.22.2
- numpy >=1.18, !=1.22.0, !=1.22.1, !=1.22.2, <1.23
- setuptools
- importlib_metadata # [py<39]
# On channel https://anaconda.org/numba/
- llvmlite >=0.39.0dev0,<0.39
- llvmlite 0.39.*
run_constrained:
# If TBB is present it must be at least version 2021
- tbb >=2021 # [not (armv6l or armv7l or aarch64 or linux32 or ppc64le)]
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user/installing.rst
Expand Up @@ -5,7 +5,7 @@ Installation
Compatibility
-------------

Numba is compatible with Python 3.7--3.10, and Numpy versions 1.18 or later.
Numba is compatible with Python 3.7--3.10, and Numpy versions 1.18 up to 1.22.

Our supported platforms are:

Expand Down
2 changes: 2 additions & 0 deletions numba/__init__.py
Expand Up @@ -142,6 +142,8 @@ def _ensure_critical_deps():

if numpy_version < (1, 18):
raise ImportError("Numba needs NumPy 1.18 or greater")
elif numpy_version > (1, 22):
raise ImportError("Numba needs NumPy 1.22 or less")

try:
import scipy
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Expand Up @@ -23,6 +23,7 @@
max_python_version = "3.11" # exclusive
min_numpy_build_version = "1.11"
min_numpy_run_version = "1.18"
max_numpy_run_version = "1.23"
min_llvmlite_version = "0.39.0dev0"
max_llvmlite_version = "0.40"

Expand Down Expand Up @@ -356,10 +357,11 @@ def check_file_at_path(path2file):

packages = find_packages(include=["numba", "numba.*"])

build_requires = ['numpy >={}'.format(min_numpy_build_version)]
build_requires = ['numpy >={},<{}'.format(min_numpy_build_version,
max_numpy_run_version)]
install_requires = [
'llvmlite >={},<{}'.format(min_llvmlite_version, max_llvmlite_version),
'numpy >={}'.format(min_numpy_run_version),
'numpy >={},<{}'.format(min_numpy_run_version, max_numpy_run_version),
'setuptools',
'importlib_metadata; python_version < "3.9"',
]
Expand Down