dev-python/numba - 0.65.0 (stuff)

Search

Install

Install this version:

emerge -a =dev-python/numba-0.65.0

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

autounmask =dev-python/numba-0.65.0

Or alternatively:

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

Package Information

Description:
NumPy aware dynamic Python compiler using LLVM
Homepage:
https://numba.pydata.org/ https://github.com/numba
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
0.65.0 8 ~amd64 0
View Raw Ebuild
# 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"
IUSE="openmp threads"

RDEPEND="
	>=dev-python/llvmlite-0.47.0[${PYTHON_USEDEP}]
	<dev-python/llvmlite-0.48[${PYTHON_USEDEP}]
	>=dev-python/numpy-1.22[${PYTHON_USEDEP}]
	<dev-python/numpy-2.5[${PYTHON_USEDEP}]
	threads? ( >=dev-cpp/tbb-2019.5 )
"
BDEPEND="
	dev-python/pip[${PYTHON_USEDEP}]
	dev-python/versioneer[${PYTHON_USEDEP}]
"

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

python_compile() {
	# FIXME: parallel python building fails. See Portage bug #614464 and
	# gentoo/sci issue #1080.
	export MAKEOPTS=-j1 || die
	distutils-r1_python_compile
}

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

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

RDEPEND

	>=dev-python/llvmlite-0.47.0[]
	<dev-python/llvmlite-0.48[]
	>=dev-python/numpy-1.22[]
	<dev-python/numpy-2.5[]
	threads? ( >=dev-cpp/tbb-2019.5 )

BDEPEND

	dev-python/pip[]
	dev-python/versioneer[]

Manifest for 0.65.0

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