# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 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" SRC_URI="https://github.com/numba/numba/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm64" IUSE="openmp threads" RDEPEND=" >=dev-python/llvmlite-0.48.0[${PYTHON_USEDEP}] =dev-python/numpy-1.22[${PYTHON_USEDEP}] =dev-cpp/tbb-2019.5 ) " # numpy is needed to build, not only to run, and at a higher floor than at # runtime. setup.py get_ext_modules() does `import numpy` for np.get_include() # to compile the C extensions, and sets min_numpy_build_version = 2.0.0rc1 # against min_numpy_run_version = 1.22 -- so RDEPEND above is right for running # and wrong for building. 0.66.0 ships no pyproject.toml, so the eclass # synthesises one and nothing pulls numpy in for the build phase. # verified 2026-07-27 BDEPEND=" dev-python/pip[${PYTHON_USEDEP}] dev-python/versioneer[${PYTHON_USEDEP}] >=dev-python/numpy-2.0.0[${PYTHON_USEDEP}]