# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{12..14} ) inherit distutils-r1 optfeature DESCRIPTION="NumPy-aware dynamic Python compiler using LLVM" HOMEPAGE="https://numba.pydata.org/ https://github.com/numba/numba" SRC_URI="https://github.com/numba/numba/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="0BSD BSD BSD-2 HPND MIT NVIDIA-CUDA PSF-2 PYTHON" SLOT="0" KEYWORDS="~amd64 ~arm64" IUSE+=" openmp threads" RESTRICT="bindist mirror" # setup.py imports NumPy to obtain headers, and requires NumPy >=2.0.0rc1 # while retaining compatibility with NumPy >=1.22 at runtime. # verified 2026-07-27 DEPEND+=" >=dev-python/numpy-2.0.0[${PYTHON_USEDEP}] =dev-cpp/tbb-2021.6:= ) " RDEPEND+=" >=dev-python/llvmlite-0.48.0[${PYTHON_USEDEP}] =dev-python/numpy-1.22[${PYTHON_USEDEP}] =dev-cpp/tbb-2021.6:= ) " BDEPEND+=" >=dev-python/numpy-2.0.0[${PYTHON_USEDEP}]