dev-python/llvmlite - 0.47.0 (science)

Search

Install

Install this version:

emerge -a =dev-python/llvmlite-0.47.0

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

autounmask =dev-python/llvmlite-0.47.0

Or alternatively:

emerge --autounmask-write -a =dev-python/llvmlite-0.47.0

Package Information

Description:
Python wrapper around the llvm C++ library
Homepage:
https://github.com/numba/llvmlite
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
0.47.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_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
LLVM_COMPAT=( 20 )

inherit cmake distutils-r1 llvm-r2

DESCRIPTION="Python wrapper around the llvm C++ library"
HOMEPAGE="https://github.com/numba/llvmlite"
SRC_URI="https://github.com/numba/llvmlite/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	virtual/zlib:0=
	$(llvm_gen_dep 'llvm-core/llvm:${LLVM_SLOT}=')
"
DEPEND="${RDEPEND}"

distutils_enable_tests pytest

python_compile() {
	LLVMLITE_SHARED=ON LLVM_CONFIG="$(get_llvm_prefix)/bin/llvm-config" distutils-r1_python_compile
}

python_test() {
	LD_LIBRARY_PATH="$(get_llvm_prefix)/$(get_libdir)" \
		"${EPYTHON}" runtests.py -v || die "tests failed for ${EPYTHON}"
}

python_install() {
	distutils-r1_python_install
	# numba compilation fails without this link
	ln -s "$(get_llvm_prefix)/$(get_libdir)/libLLVM-${LLVM_SLOT}.so" \
		"${D}/$(python_get_sitedir)/llvmlite/binding/libLLVM-${LLVM_SLOT}.so" || die
}

Inherited Eclasses

Dependencies

DEPEND

	virtual/zlib:0=
	$(llvm_gen_dep 'llvm-core/llvm:=')

RDEPEND

	virtual/zlib:0=
	$(llvm_gen_dep 'llvm-core/llvm:=')

Manifest for 0.47.0

Type File Size Source URLs
DIST llvmlite-0.47.0.gh.tar.gz 310838 bytes https://github.com/numba/llvmlite/archive/refs/tags/v0.47.0.tar.gz