dev-python/numba - 0.67.0 (stuff)

Search

Install

Install this version:

emerge -a =dev-python/numba-0.67.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/numba-0.67.0

Or alternatively:

emerge --autounmask-write -a =dev-python/numba-0.67.0

Package Information

Description:
NumPy-aware dynamic Python compiler using LLVM
Homepage:
https://numba.pydata.org/ https://github.com/numba/numba
License:
0BSD BSD BSD-2 HPND MIT NVIDIA-CUDA PSF-2 PYTHON

Ebuild Details

Version EAPI Keywords Slot
0.67.0 8 ~amd64 ~arm64 0
View Raw Ebuild
# 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. numba 0.67.0
# raises the NumPy run cap to 2.6 (max_numpy_run_version). # verified 2026-08-11
DEPEND+="
	>=dev-python/numpy-2.0.0[${PYTHON_USEDEP}]
	<dev-python/numpy-2.7[${PYTHON_USEDEP}]
	threads? ( >=dev-cpp/tbb-2021.6:= )
"
RDEPEND+="
	>=dev-python/llvmlite-0.49.0[${PYTHON_USEDEP}]
	<dev-python/llvmlite-0.50[${PYTHON_USEDEP}]
	>=dev-python/numpy-1.22[${PYTHON_USEDEP}]
	<dev-python/numpy-2.7[${PYTHON_USEDEP}]
	threads? ( >=dev-cpp/tbb-2021.6:= )
"
BDEPEND+="
	>=dev-python/numpy-2.0.0[${PYTHON_USEDEP}]
	<dev-python/numpy-2.7[${PYTHON_USEDEP}]
"

distutils_enable_tests unittest

pkg_setup() {
	if ! use openmp; then
		export NUMBA_DISABLE_OPENMP=1
	else
		unset NUMBA_DISABLE_OPENMP
	fi
	if ! use threads; then
		export NUMBA_DISABLE_TBB=1
	else
		unset NUMBA_DISABLE_TBB
		export TBBROOT="${EPREFIX}/usr"
	fi
}

python_test() {
	cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
	"${EPYTHON}" -m numba.runtests -v \
		numba.tests.test_import \
		numba.tests.test_llvm_version_check \
		numba.tests.test_usecases || die "tests failed for ${EPYTHON}"
}

pkg_postinst() {
	optfeature "compile CUDA code" dev-util/nvidia-cuda-toolkit
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-python/numba | euse -E <flag> -p dev-python/numba | euse -D <flag> -p dev-python/numba

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	>=dev-python/numpy-2.0.0[]
	<dev-python/numpy-2.7[]
	threads? ( >=dev-cpp/tbb-2021.6:= )

RDEPEND

	>=dev-python/llvmlite-0.49.0[]
	<dev-python/llvmlite-0.50[]
	>=dev-python/numpy-1.22[]
	<dev-python/numpy-2.7[]
	threads? ( >=dev-cpp/tbb-2021.6:= )

BDEPEND

	>=dev-python/numpy-2.0.0[]
	<dev-python/numpy-2.7[]

Manifest for 0.67.0

Type File Size Source URLs
DIST numba-0.67.0.gh.tar.gz 2923170 bytes https://github.com/numba/numba/archive/0.67.0.tar.gz